Class: Strata::CLI::Main
- Inherits:
-
Thor
- Object
- Thor
- Strata::CLI::Main
- Extended by:
- Helpers::DescriptionHelper
- Includes:
- Guard
- Defined in:
- lib/strata/cli/main.rb
Constant Summary
Constants included from Guard
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Helpers::DescriptionHelper
Methods included from Guard
Class Method Details
.exit_on_failure? ⇒ Boolean
18 19 20 |
# File 'lib/strata/cli/main.rb', line 18 def self.exit_on_failure? true end |
Instance Method Details
#adapters ⇒ Object
45 46 47 48 |
# File 'lib/strata/cli/main.rb', line 45 def adapters out = " SUPPORTED ADAPTERS: \n\t#{DWH.adapters.keys.join("\n\t")}" say out, ColorHelper.info end |
#init(project_name = nil) ⇒ Object
34 35 36 37 38 39 40 41 42 |
# File 'lib/strata/cli/main.rb', line 34 def init(project_name = nil) unless project_name || [:source] raise Strata::CommandError, "PROJECT_NAME is required when not using --source option." end say_status :started, "Creating #{project_name || "project from source"} - #{[:datasource]}", ColorHelper.info invoke Generators::Project, [project_name], end |
#version ⇒ Object
23 24 25 |
# File 'lib/strata/cli/main.rb', line 23 def version say VERSION end |