bosh-director 1.2732.0 → 1.2739.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 577305c57f4a1e147fda1b7f694180a2c6143527
4
- data.tar.gz: e57c0592b7e25428ff5ac03949ee467456fd491a
3
+ metadata.gz: 1eaa338712fc066dfcc8ced60a1e7769c82907c6
4
+ data.tar.gz: 01db501cba7012e084cd726b1d634bfe0a9eb950
5
5
  SHA512:
6
- metadata.gz: 22f1865d1242c959ba912aa90e1ae51909ffee5103f49fa9630331db6a21849b96a11b3bac9099869f572e6fc6ab398d56d8ddcc0236606cfb210788cb243d13
7
- data.tar.gz: 9189750566ef442e02bb6db1e8c59bc8a0ecf84e1f73ab0896243301fdafbbfddaeca1d7e67c0825c714a0f165bd75b489d69cb2bef421671c3a8c8efab2249e
6
+ metadata.gz: cb9ea1ab2aa1a58fef2d6f49ca96022b2ce6f9322bfb71a88354867d9af452a0ab5f38dace2e38b015648e12ea12db923e6a812466ffef2f778c3185e558d1d4
7
+ data.tar.gz: 72f59e8812b850d8dc873862b815780f8dcd6422156f02445c34726656d97fa32cf498c2b699bc39aad64f83323896056e6f734e8688d547904ba97b8cbda4d0
@@ -0,0 +1,41 @@
1
+ require 'json'
2
+ require 'bosh/director/api/controllers/base_controller'
3
+
4
+ module Bosh::Director
5
+ module Api::Controllers
6
+ class ErrandsController < BaseController
7
+ get '/deployments/:deployment_name/errands' do
8
+ deployment = @deployment_manager.find_by_name(params[:deployment_name])
9
+
10
+ manifest = Psych.load(deployment.manifest)
11
+ deployment_plan = DeploymentPlan::Planner.parse(manifest, {}, Config.event_log, Config.logger)
12
+
13
+ errands = deployment_plan.jobs.select(&:can_run_as_errand?)
14
+
15
+ errand_data = errands.map do |errand|
16
+ { "name" => errand.name }
17
+ end
18
+
19
+ json_encode(errand_data)
20
+ end
21
+
22
+ post '/deployments/:deployment_name/errands/:errand_name/runs' do
23
+ deployment_name = params[:deployment_name]
24
+ errand_name = params[:errand_name]
25
+
26
+ task = JobQueue.new.enqueue(
27
+ @user,
28
+ Jobs::RunErrand,
29
+ "run errand #{errand_name} from deployment #{deployment_name}",
30
+ [deployment_name, errand_name],
31
+ )
32
+
33
+ redirect "/tasks/#{task.id}"
34
+ end
35
+
36
+ def body_params
37
+ @body_params ||= JSON.load(request.body)
38
+ end
39
+ end
40
+ end
41
+ end
@@ -1,5 +1,5 @@
1
1
  module Bosh
2
2
  module Director
3
- VERSION = '1.2732.0'
3
+ VERSION = '1.2739.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bosh-director
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2732.0
4
+ version: 1.2739.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - VMware
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-30 00:00:00.000000000 Z
11
+ date: 2014-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bcrypt-ruby
@@ -30,154 +30,154 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.2732.0
33
+ version: 1.2739.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 1.2732.0
40
+ version: 1.2739.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bosh-core
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 1.2732.0
47
+ version: 1.2739.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 1.2732.0
54
+ version: 1.2739.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: bosh-director-core
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 1.2732.0
61
+ version: 1.2739.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 1.2732.0
68
+ version: 1.2739.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: bosh_common
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 1.2732.0
75
+ version: 1.2739.0
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 1.2732.0
82
+ version: 1.2739.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: bosh-template
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 1.2732.0
89
+ version: 1.2739.0
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 1.2732.0
96
+ version: 1.2739.0
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: bosh_cpi
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 1.2732.0
103
+ version: 1.2739.0
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 1.2732.0
110
+ version: 1.2739.0
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: bosh_openstack_cpi
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 1.2732.0
117
+ version: 1.2739.0
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: 1.2732.0
124
+ version: 1.2739.0
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: bosh_aws_cpi
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: 1.2732.0
131
+ version: 1.2739.0
132
132
  type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: 1.2732.0
138
+ version: 1.2739.0
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: bosh_vsphere_cpi
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
143
  - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: 1.2732.0
145
+ version: 1.2739.0
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: 1.2732.0
152
+ version: 1.2739.0
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: bosh_warden_cpi
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
157
  - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: 1.2732.0
159
+ version: 1.2739.0
160
160
  type: :runtime
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - "~>"
165
165
  - !ruby/object:Gem::Version
166
- version: 1.2732.0
166
+ version: 1.2739.0
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: bosh_vcloud_cpi
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
- - - '='
171
+ - - "~>"
172
172
  - !ruby/object:Gem::Version
173
- version: 0.6.0
173
+ version: 0.7.0
174
174
  type: :runtime
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
- - - '='
178
+ - - "~>"
179
179
  - !ruby/object:Gem::Version
180
- version: 0.6.0
180
+ version: 0.7.0
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: eventmachine
183
183
  requirement: !ruby/object:Gem::Requirement
@@ -460,7 +460,7 @@ dependencies:
460
460
  version: '0'
461
461
  description: |-
462
462
  BOSH Director
463
- f6dedd
463
+ 0d77bd
464
464
  email: support@cloudfoundry.com
465
465
  executables:
466
466
  - bosh-director
@@ -522,6 +522,7 @@ files:
522
522
  - lib/bosh/director/api/controllers/base_controller.rb
523
523
  - lib/bosh/director/api/controllers/compiled_packages_controller.rb
524
524
  - lib/bosh/director/api/controllers/deployments_controller.rb
525
+ - lib/bosh/director/api/controllers/errands_controller.rb
525
526
  - lib/bosh/director/api/controllers/info_controller.rb
526
527
  - lib/bosh/director/api/controllers/locks_controller.rb
527
528
  - lib/bosh/director/api/controllers/packages_controller.rb