Class: Codelog::Command::Step::Version
- Inherits:
-
Object
- Object
- Codelog::Command::Step::Version
- Includes:
- FileUtils
- Defined in:
- lib/codelog/command/step/version.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(version) ⇒ Version
constructor
A new instance of Version.
- #run ⇒ Object
Constructor Details
#initialize(version) ⇒ Version
Returns a new instance of Version.
10 11 12 |
# File 'lib/codelog/command/step/version.rb', line 10 def initialize(version) @version = version end |
Class Method Details
.run(version) ⇒ Object
14 15 16 |
# File 'lib/codelog/command/step/version.rb', line 14 def self.run(version) Codelog::Command::Step::Version.new(version).run end |
Instance Method Details
#run ⇒ Object
18 19 20 21 22 23 |
# File 'lib/codelog/command/step/version.rb', line 18 def run abort('ERROR: Please enter a version number') if @version.nil? chdir Dir.pwd do create_version_changelog_from changes_hash end end |