Class: Jets::Commands::Import::Base

Inherits:
Sequence
  • Object
show all
Defined in:
lib/jets/commands/import/base.rb

Direct Known Subclasses

Rack, Rail

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Sequence

source_root

Class Method Details

.cli_optionsObject

Ugly, but when the class_option is only defined in the Thor::Group class it doesnt show up with jets new help :( If anyone knows how to fix this let me know.



6
7
8
9
10
# File 'lib/jets/commands/import/base.rb', line 6

def self.cli_options
  [
    [:submodule, type: :boolean, default: false, desc: "Imports the project as a submodule"],
  ]
end

Instance Method Details

#setupObject

Since setup is public it will automatically run in the subclasses



14
15
16
17
18
19
# File 'lib/jets/commands/import/base.rb', line 14

def setup
  start_message
  create_rack_folder
  configure_ruby
  create_rackup_wrappers
end