Class: MSPRelease::CLI::Reset

Inherits:
Command
  • Object
show all
Includes:
WorkingCopyCommand
Defined in:
lib/msp_release/cli/reset.rb

Constant Summary

Constants included from Helpers

Helpers::PROJECT_FILE

Instance Attribute Summary

Attributes included from WorkingCopyCommand

#git, #project

Instance Method Summary collapse

Methods included from WorkingCopyCommand

#initialize

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

Methods included from Exec::Helpers

#exec

Instance Method Details

#runObject

Raises:



8
9
10
11
12
13
14
15
# File 'lib/msp_release/cli/reset.rb', line 8

def run

  raise CLI::Exit, "No waiting changes" unless data_exists?

  exec "git checkout #{project.changelog_path}"
  remove_data
  puts "Reset"
end