ops_tasks 0.4.0 → 0.4.1

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: 3f33d3e4561e7709945ac0962af52f1e107ebe96
4
- data.tar.gz: 92fb7c2300e91c82917c5621af76db96139d8028
3
+ metadata.gz: cfb18ecad83799dd3c85385508feb8ae9f79146a
4
+ data.tar.gz: d08ad92571cbeeeacf74b34b346921773acb0f2b
5
5
  SHA512:
6
- metadata.gz: 533220c274290c6668d60174f6cabfb3713f34da76b69290c999c12dc8d3616c8ad9f484689450f085f2bcfea60f01365f2e89f6f2d92413a2f764ec39559f8d
7
- data.tar.gz: c1c51571e9c5ee6428c383cba66356f863f3b90baaea0cd41e9eab78ba061ffe5b1a65d09a6a5d9f868f897d78848ffa4086c46ac3e60852fb5db982b6d63299
6
+ metadata.gz: 240e19cbb53b0a204f55ad8641d6228a30bc02c8ba01b498f41666c22aba233b69eced0626bed4c50cc2ba3d1ece3f74b7479280bcf288171d811994da8d0579
7
+ data.tar.gz: a63b662d6c489c65ab607153b27dec7b04a87b36d997574045f6318e70b4f529297b1ea8fdf97db62bd107e1dbb8984a35f013040612d159fbf290ef363bcc4a
@@ -45,6 +45,19 @@ module OpsTasks
45
45
  return id
46
46
  end
47
47
 
48
+ def configure
49
+ print "#{@project}: Preparing configuration... "
50
+ id = @client.create_deployment(
51
+ :stack_id => @stack_id,
52
+ :instance_ids => instance_ids,
53
+ :command => {
54
+ name: "configure"
55
+ }
56
+ )[:deployment_id]
57
+ puts "successful"
58
+ return id
59
+ end
60
+
48
61
  def update_cookbooks
49
62
  print "#{@project}: Preparing cookbook update... "
50
63
 
@@ -1,3 +1,3 @@
1
1
  module OpsTasks
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
@@ -24,4 +24,11 @@ namespace :ops_tasks do
24
24
  deploy_id = deployment.setup
25
25
  deployment.wait_for_completion(deploy_id, "setup")
26
26
  end
27
+
28
+ desc "run config recipe"
29
+ task :setup => :environment do
30
+ deployment = OpsTasks::RakeHelper.create_deployment
31
+ deploy_id = deployment.configure
32
+ deployment.wait_for_completion(deploy_id, "configure")
33
+ end
27
34
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ops_tasks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Prokesch