cap_reserve 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/cap_reserve.gemspec +1 -1
  2. data/lib/cap_reserve.rb +3 -3
  3. metadata +4 -4
data/cap_reserve.gemspec CHANGED
@@ -6,7 +6,7 @@ $:.unshift lib unless $:.include?(lib)
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "cap_reserve"
9
- s.version = '0.1.4'
9
+ s.version = '0.1.5'
10
10
  s.platform = Gem::Platform::RUBY
11
11
  s.authors = [ "Winton Welsh" ]
12
12
  s.email = [ "mail@wintoni.us" ]
data/lib/cap_reserve.rb CHANGED
@@ -11,8 +11,8 @@ Capistrano::Configuration.instance(:must_exist).load do
11
11
  desc "Reserve environment using RESERVE=minutes"
12
12
  task :maitre_d do
13
13
  begin
14
- env, user, time, force, url, destroy =
15
- ENV['RESERVE_ENV'], ENV['USER'], ENV['RESERVE'], ENV['FORCE'], ENV['RESERVE_URL'], ENV['DESTROY']
14
+ env, user, time, force, url, destroy, branch =
15
+ ENV['RESERVE_ENV'], ENV['USER'], ENV['RESERVE'], ENV['FORCE'], ENV['RESERVE_URL'], ENV['DESTROY'], ENV['BRANCH']
16
16
 
17
17
  help = <<-HELP
18
18
  FORCE=1 to deploy anyway
@@ -44,7 +44,7 @@ HELP
44
44
  create = lambda do |params|
45
45
  if time
46
46
  get.call("#{url}/reservations/create", {
47
- :environment => env, :user => user, :seconds => time.to_i * 60
47
+ :environment => env, :user => user, :seconds => time.to_i * 60, :branch => branch
48
48
  }.merge(params))
49
49
  puts "\n\e[32mReservation created\e[0m: \e[33m#{user}@#{env}\e[0m for \e[33m#{time.to_i} minutes\e[0m\n\n"
50
50
  elsif destroy
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cap_reserve
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 4
10
- version: 0.1.4
9
+ - 5
10
+ version: 0.1.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Winton Welsh
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-10-13 00:00:00 Z
18
+ date: 2011-12-06 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rspec