Method not available on this version
This method is only available on newer versions.
The first available version (v2_6_3) is shown here.
new(args = [], options = {}, config = {})
public
Extends initializer to add more configuration options.
Configuration
behavior |
The actions default behavior. Can be :invoke or :revoke. It also accepts
:force, :skip and :pretend to set the behavior and the respective option.
|
destination_root |
The root directory
needed for some actions.
|
# File lib/bundler/vendor/thor/lib/thor/actions.rb, line 73
def initialize(args = [], options = {}, config = {})
self.behavior = case config[:behavior].to_s
when "force", "skip"
_cleanup_options_and_set(options, config[:behavior])
:invoke
when "revoke"
:revoke
else
:invoke
end
super
self.destination_root = config[:destination_root]
end