Module: MSPRelease::CLI::WorkingCopyCommand
- Includes:
- Helpers
- Defined in:
- lib/msp_release/cli.rb
Overview
Commands that require a git working copy can include this module
Constant Summary
Constants included from Helpers
Instance Attribute Summary collapse
-
#git ⇒ Object
Returns the value of attribute git.
-
#project ⇒ Object
Returns the value of attribute project.
Instance Method Summary collapse
Methods included from Helpers
#author, #changelog, #data, #data=, #data_exists?, #fail_if_modified_wc, #fail_if_push_pending, #git_version, #load_data, #msp_version, #on_release_branch?, #remove_data, #save_data, #time, #time_rfc, #timestamp
Instance Attribute Details
#git ⇒ Object
Returns the value of attribute git.
34 35 36 |
# File 'lib/msp_release/cli.rb', line 34 def git @git end |
#project ⇒ Object
Returns the value of attribute project.
34 35 36 |
# File 'lib/msp_release/cli.rb', line 34 def project @project end |
Instance Method Details
#initialize(options, leftovers) ⇒ Object
36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/msp_release/cli.rb', line 36 def initialize(, leftovers) super if File.exists?(PROJECT_FILE) @project = MSPRelease::Project.new_from_project_file(PROJECT_FILE) else raise Climate::ExitException. new("No #{PROJECT_FILE} present in current directory") end @git = Git.new(@project, ) end |