Class: KRL_CMD::Commit
- Inherits:
-
Object
- Object
- KRL_CMD::Commit
- Defined in:
- lib/commit.rb
Class Method Summary collapse
Class Method Details
.go(args) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/commit.rb', line 3 def self.go(args) require LIB_DIR + 'common' app = KRL_COMMON::get_app krl_file = File.join(Dir.pwd, app.application_id + ".krl") if File.exists?(krl_file) app.krl = File.open(krl_file, 'r') { |f| f.read } app.set_version_note(app.version, args.to_s) if args.to_s != "" else raise "Unable to find file: #{krl_file}" end puts "Committed version #{app.version}" end |