Class: ReleaseRunner
Instance Attribute Summary collapse
-
#box ⇒ Object
readonly
Returns the value of attribute box.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(opts) ⇒ ReleaseRunner
constructor
A new instance of ReleaseRunner.
- #start ⇒ Object
Methods included from Common
#banner, #box_metadata, #build_list, #builds_yml, #duration, #info, #macos?, #metadata_files, #private_box?, #unix?, #vc_account, #warn, #windows?
Constructor Details
#initialize(opts) ⇒ ReleaseRunner
Returns a new instance of ReleaseRunner.
8 9 10 11 |
# File 'lib/bento/release.rb', line 8 def initialize(opts) @box = opts.box @version = opts.version end |
Instance Attribute Details
#box ⇒ Object (readonly)
Returns the value of attribute box.
6 7 8 |
# File 'lib/bento/release.rb', line 6 def box @box end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
6 7 8 |
# File 'lib/bento/release.rb', line 6 def version @version end |
Instance Method Details
#start ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'lib/bento/release.rb', line 13 def start ("Releasing #{box}/#{version}...") time = Benchmark.measure do b = vc_account.get_box(box) v = b.get_version(version) v.release end ("Release finished in #{duration(time.real)}.") end |