Class: SkeletorCLI::CLI
- Inherits:
-
Thor
- Object
- Thor
- SkeletorCLI::CLI
- Defined in:
- lib/skeletor_cli/cli.rb
Constant Summary collapse
- DEFAULT_CONFIG =
".skeletor"
Instance Method Summary collapse
- #build(slug, app_name) ⇒ Object
-
#initialize(*args) ⇒ CLI
constructor
A new instance of CLI.
Constructor Details
#initialize(*args) ⇒ CLI
10 11 12 13 |
# File 'lib/skeletor_cli/cli.rb', line 10 def initialize(*args) super(*args) find_or_init_config end |
Instance Method Details
#build(slug, app_name) ⇒ Object
16 17 18 19 |
# File 'lib/skeletor_cli/cli.rb', line 16 def build(slug, app_name) skeleton = @api_client.get_skeleton(slug) RailsBuilder.build(skeleton, app_name) end |