lib/standup.rb in standup-0.4.0 vs lib/standup.rb in standup-0.5.0
- old
+ new
@@ -11,10 +11,11 @@
require 'standup/ec2'
require 'standup/remoting'
require 'standup/scripts/base'
require 'standup/scripts/node'
require 'standup/node'
+require 'standup/version'
module Standup
module Scripts; end
def self.nodes
@@ -58,14 +59,10 @@
Standup::Scripts.send(:remove_const, name.camelize) if scripts[name]
Standup::Scripts.const_set name.camelize, script_class
scripts[name] = script_class
end
- def self.version
- File.read(File.expand_path('../../VERSION', __FILE__)).strip
- end
-
def self.run_from_command_line
if File.exists?('Gemfile') && !ENV['BUNDLE_GEMFILE']
Kernel.exec "bundle exec standup #{ARGV.join(' ')}"
end
@@ -104,6 +101,6 @@
script.execute
else
opt_parser.die "unknown script #{script_name}", nil
end
end
-end
\ No newline at end of file
+end