momentum 0.0.4 → 0.0.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.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/momentum/tasks.rb +5 -0
- data/lib/momentum/version.rb +1 -1
- data/lib/momentum.rb +1 -0
- data/lib/tasks/librarian.rake +7 -1
- data/lib/tasks/ow-cookbooks.rake +2 -8
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f0149ba8b46a7d55c702254909243a62474c664
|
4
|
+
data.tar.gz: 651a98e07b3a42aff25fa4a413cd8f153525b82a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6957fdd5f8894a80f6fb65c3ca003446d485d5daff7f1a74c7e4b8b17c3ff2540e9b1bf0571ebf8d48599444da8e60d522ce7138cf1d72f016a8d5fe117ccc54
|
7
|
+
data.tar.gz: 90936ccf9409422c09fcf85c43a268ddcf65a907423a935febbb8d7287d1f123ed2c5f544e82a96f3a1cd034f138eb3eba7d2470410ec18338f1c5772339e822
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ Shared utilities for managing and deploying OpsWorks apps at Artsy.
|
|
7
7
|
|
8
8
|
Add this line to your application's Gemfile, probably in the `:development` group:
|
9
9
|
|
10
|
-
gem 'momentum',
|
10
|
+
gem 'momentum', require: false
|
11
11
|
|
12
12
|
In your application's Rakefile, add this line above the `load_tasks` command:
|
13
13
|
|
data/lib/momentum/tasks.rb
CHANGED
data/lib/momentum/version.rb
CHANGED
data/lib/momentum.rb
CHANGED
data/lib/tasks/librarian.rake
CHANGED
@@ -18,7 +18,13 @@ LIBRARIAN_CHEF_INSTALL__STRIP_DOT_GIT: '1'
|
|
18
18
|
# librarian-chef and rails declare incompatible json dependencies,
|
19
19
|
# so librarian-chef must be installed but can't be in the bundle
|
20
20
|
Bundler.with_clean_env do
|
21
|
-
system "librarian-chef init"
|
21
|
+
system! "librarian-chef init"
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
task :install => :require do
|
26
|
+
Bundler.with_clean_env do
|
27
|
+
system! "librarian-chef install"
|
22
28
|
end
|
23
29
|
end
|
24
30
|
|
data/lib/tasks/ow-cookbooks.rake
CHANGED
@@ -4,18 +4,12 @@ namespace :ow do
|
|
4
4
|
require 'momentum/opsworks'
|
5
5
|
require 'momentum/tasks'
|
6
6
|
|
7
|
-
# TODO add dependency on librarian-chef once chef/json conflict resolved
|
8
|
-
# desc "Run librarian-chef install"
|
9
|
-
# task :install do
|
10
|
-
# `librarian-chef install`
|
11
|
-
# end
|
12
|
-
|
13
7
|
desc "Zip the #{Momentum.config[:cookbooks_install_path]} directory into #{Momentum.config[:cookbooks_install_path]}.zip"
|
14
8
|
task :zip do
|
15
9
|
raise "No cookbooks found at #{Momentum.config[:cookbooks_install_path]}! Run librarian-chef install." unless File.exists?(Momentum.config[:cookbooks_install_path])
|
16
10
|
dir = File.dirname(Momentum.config[:cookbooks_install_path])
|
17
11
|
base = File.basename(Momentum.config[:cookbooks_install_path])
|
18
|
-
system "rm -f #{cookbooks_zip} && pushd #{dir} && zip -r #{base} #{base} && popd"
|
12
|
+
system! "rm -f #{cookbooks_zip} && pushd #{dir} && zip -r #{base} #{base} && popd"
|
19
13
|
$stderr.puts "Zipped cookbooks to #{cookbooks_zip}"
|
20
14
|
end
|
21
15
|
|
@@ -33,7 +27,7 @@ namespace :ow do
|
|
33
27
|
end
|
34
28
|
|
35
29
|
desc "Install, zip and upload custom cookbooks, then trigger update_custom_cookbooks command."
|
36
|
-
task :update, [:to, :aws_id, :aws_secret] => [:require_app_base_name, :zip, :upload] do |t, args|
|
30
|
+
task :update, [:to, :aws_id, :aws_secret] => [:require_app_base_name, 'librarian:install', :zip, :upload] do |t, args|
|
37
31
|
require_credentials!(args)
|
38
32
|
|
39
33
|
ow = Momentum::OpsWorks.client(args[:aws_id], args[:aws_secret])
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: momentum
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joey Aghion
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|