Class: CubaGenie::CubaSetup
- Includes:
- Content
- Defined in:
- lib/cuba_genie/cuba_setup.rb
Constant Summary
Constants included from Content
Content::ACCEPTANCE_TEST_FILE_CONTENT, Content::APP_FILE_CONTENT, Content::BOOTSTRAP_CSS, Content::BOOTSTRAP_JS, Content::FUNCTIONAL_TEST_FILE_CONTENT, Content::GEM_FILE_CAPYBARA_CONTENT, Content::GEM_FILE_CONTENT, Content::HOME_VIEW_CONTENT, Content::LAYOUT_VIEW_CONTENT, Content::MINITEST_REPORTERS, Content::RACK_FILE_CONTENT, Content::RAKE_FILE_CONTENT, Content::TEST_HELPER_CONTENT_CAPYBARA, Content::TEST_HELPER_CONTENT_CORE
Instance Attribute Summary
Attributes inherited from Command
#description, #error, #project_name, #rollback_msg
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(**args) ⇒ CubaSetup
constructor
A new instance of CubaSetup.
Methods inherited from Command
Constructor Details
#initialize(**args) ⇒ CubaSetup
Returns a new instance of CubaSetup.
10 11 12 13 14 15 16 17 18 |
# File 'lib/cuba_genie/cuba_setup.rb', line 10 def initialize(**args) @project_name = args[:project_name] @minitest = args[:minitest] @capybara = args[:capybara] @description = "Creating Cuba setup" @rollback_msg = "rolling back Cuba basic setup" super end |
Instance Method Details
#execute ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/cuba_genie/cuba_setup.rb', line 20 def execute super do FileUtils.mkdir @project_name @dirs_created << @project_name FileUtils.chdir @project_name create_app_file create_rack_file create_gem_file git_initialize create_ruby_version_file create_ruby_gemset_file end end |