Add shell to initialize config values.
An instance of the shell to be used.
class MyScript < Bundler::Thor argument :first, :type => :numeric end MyScript.new [1.0], { :foo => :bar }, :shell => Bundler::Thor::Shell::Basic.new
# File bundler/vendor/thor/lib/thor/shell.rb, line 44 def initialize(args = [], options = {}, config = {}) super self.shell = config[:shell] shell.base ||= self if shell.respond_to?(:base) end
Holds the shell for the given Bundler::Thor instance. If no shell is given, it gets a default shell from Bundler::Thor::Base.shell
.
# File bundler/vendor/thor/lib/thor/shell.rb, line 52 def shell @shell ||= Bundler::Thor::Base.shell.new end