collins_state 0.2.11 → 0.2.12
Sign up to get free protection for your applications and to get access to all the features.
data/collins_state.gemspec
CHANGED
@@ -113,6 +113,8 @@ module Collins; module State; module Mixin
|
|
113
113
|
# @return [Fixnum] Value in seconds
|
114
114
|
def after duration, time_unit = :seconds
|
115
115
|
multiplier = case time_unit
|
116
|
+
when :days, :day
|
117
|
+
24*60*60
|
116
118
|
when :hours, :hour
|
117
119
|
60*60
|
118
120
|
when :minutes, :minute
|
@@ -13,8 +13,8 @@ module Collins
|
|
13
13
|
action :reprovision do |asset, p|
|
14
14
|
detailed = client.get asset
|
15
15
|
p.logger.warn "Reprovisioning #{detailed.tag}"
|
16
|
-
client.set_status! asset, "Maintenance"
|
17
|
-
client.provision asset, detailed.nodeclass, detailed.
|
16
|
+
client.set_status! asset, "Maintenance", "Automated reprovisioning"
|
17
|
+
client.provision asset, detailed.nodeclass, (detailed.build_contact || "nobody"), :suffix => detailed.suffix,
|
18
18
|
:primary_role => detailed.primary_role, :secondary_role => detailed.secondary_role,
|
19
19
|
:pool => detailed.pool
|
20
20
|
end
|
metadata
CHANGED
@@ -1,55 +1,48 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: collins_state
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.11
|
3
|
+
version: !ruby/object:Gem::Version
|
5
4
|
prerelease:
|
5
|
+
version: 0.2.12
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Blake Matheny
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
12
|
+
|
13
|
+
date: 2012-11-19 00:00:00 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
15
16
|
name: collins_client
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
|
-
requirements:
|
19
|
-
- - ~>
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: 0.2.9
|
22
|
-
type: :runtime
|
23
17
|
prerelease: false
|
24
|
-
|
18
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
19
|
none: false
|
26
|
-
requirements:
|
20
|
+
requirements:
|
27
21
|
- - ~>
|
28
|
-
- !ruby/object:Gem::Version
|
22
|
+
- !ruby/object:Gem::Version
|
29
23
|
version: 0.2.9
|
30
|
-
- !ruby/object:Gem::Dependency
|
31
|
-
name: escape
|
32
|
-
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
|
-
requirements:
|
35
|
-
- - ~>
|
36
|
-
- !ruby/object:Gem::Version
|
37
|
-
version: 0.0.4
|
38
24
|
type: :runtime
|
25
|
+
version_requirements: *id001
|
26
|
+
- !ruby/object:Gem::Dependency
|
27
|
+
name: escape
|
39
28
|
prerelease: false
|
40
|
-
|
29
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
41
30
|
none: false
|
42
|
-
requirements:
|
31
|
+
requirements:
|
43
32
|
- - ~>
|
44
|
-
- !ruby/object:Gem::Version
|
33
|
+
- !ruby/object:Gem::Version
|
45
34
|
version: 0.0.4
|
35
|
+
type: :runtime
|
36
|
+
version_requirements: *id002
|
46
37
|
description: Provides basic framework for managing stateful processes with collins
|
47
38
|
email: bmatheny@tumblr.com
|
48
39
|
executables: []
|
40
|
+
|
49
41
|
extensions: []
|
50
|
-
|
42
|
+
|
43
|
+
extra_rdoc_files:
|
51
44
|
- README.md
|
52
|
-
files:
|
45
|
+
files:
|
53
46
|
- Gemfile
|
54
47
|
- Gemfile.lock
|
55
48
|
- README.md
|
@@ -63,31 +56,31 @@ files:
|
|
63
56
|
- lib/collins/workflows/provisioning_workflow.rb
|
64
57
|
- lib/collins_state.rb
|
65
58
|
homepage: https://github.com/tumblr/collins/tree/master/support/ruby/collins-state
|
66
|
-
licenses:
|
59
|
+
licenses:
|
67
60
|
- APL 2.0
|
68
61
|
post_install_message:
|
69
62
|
rdoc_options: []
|
70
|
-
|
63
|
+
|
64
|
+
require_paths:
|
71
65
|
- lib
|
72
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
66
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
73
67
|
none: false
|
74
|
-
requirements:
|
75
|
-
- -
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
version:
|
78
|
-
|
79
|
-
- 0
|
80
|
-
hash: 759183383147703358
|
81
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
68
|
+
requirements:
|
69
|
+
- - ">="
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: "0"
|
72
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
82
73
|
none: false
|
83
|
-
requirements:
|
84
|
-
- -
|
85
|
-
- !ruby/object:Gem::Version
|
86
|
-
version:
|
74
|
+
requirements:
|
75
|
+
- - ">="
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: "0"
|
87
78
|
requirements: []
|
79
|
+
|
88
80
|
rubyforge_project:
|
89
|
-
rubygems_version: 1.8.
|
81
|
+
rubygems_version: 1.8.10
|
90
82
|
signing_key:
|
91
83
|
specification_version: 3
|
92
84
|
summary: Collins based state management
|
93
85
|
test_files: []
|
86
|
+
|