Class: GemSuit::Application

Inherits:
Thor::Group
  • Object
show all
Includes:
Actions, Test
Defined in:
lib/gem_suit/application.rb,
lib/gem_suit/application/test.rb,
lib/gem_suit/application/utils.rb,
lib/gem_suit/application/actions.rb,
lib/gem_suit/application/utils/gemfile.rb

Defined Under Namespace

Modules: Actions, Test, Utils

Constant Summary collapse

STASHED_EXT =
"stashed"

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Test

included

Methods included from Actions

included

Constructor Details

#initialize(options = {:validate_root_path => true}) ⇒ Application

Returns a new instance of Application.



14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/gem_suit/application.rb', line 14

def initialize(options = {:validate_root_path => true})
  super [], {}, {}

  begin
    OptionParser.new do |opts|
      opts.on "-v", "--[no-]verbose" do |v|
        options[:verbose] ||= v
      end
    end.parse! ARGV
  rescue OptionParser::InvalidOption
  end

  options.each do |key, value|
    send :"#{key}=", value
  end
end

Class Method Details

.source_rootObject



32
33
34
# File 'lib/gem_suit/application.rb', line 32

def source_root
  @source_root
end

.source_root=(path) ⇒ Object



36
37
38
# File 'lib/gem_suit/application.rb', line 36

def source_root=(path)
  @source_root = path
end