aerosol 1.6.0 → 1.7.0.pre.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aerosol/cli.rb +15 -0
- data/lib/aerosol/rake_task.rb +0 -2
- data/lib/aerosol/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b8819f96c48ea7dd20ca4e8b8dd60f57438e8490
|
4
|
+
data.tar.gz: 1101234f4a09e3e3ab6c037a1ff2d508c1ebf667
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ca3ac081e15a0240242a2c9b9a72ffba1cf4ac7efd5e36287462f2ecf3ce8c22f1b131446525b177c3a0157256e9df7ff160e204e081276c14885907eb0fe08
|
7
|
+
data.tar.gz: cad77cab038f356a8a061c0a2fd5a912dc1dd435d90a473f2209f92c314f0b4769700469b1dda450be2d84030ead7957ec32625554b5cb601778e8c2236ce036
|
data/lib/aerosol/cli.rb
CHANGED
@@ -14,6 +14,20 @@ class Aerosol::AbstractCommand < Clamp::Command
|
|
14
14
|
end
|
15
15
|
end
|
16
16
|
|
17
|
+
class Aerosol::DeployCommand < Aerosol::AbstractCommand
|
18
|
+
parameter 'DEPLOY', 'the deploy to run (can also be an environment name) for', :attribute_name => :deploy_name
|
19
|
+
|
20
|
+
def execute
|
21
|
+
super
|
22
|
+
|
23
|
+
if Aerosol.deploy(deploy_name.to_sym)
|
24
|
+
Rake::Task["aerosol:#{deploy_name}:all"].invoke
|
25
|
+
elsif Aerosol.env(deploy_name.to_sym)
|
26
|
+
Rake::Task["aerosol:env:#{deploy_name}"].invoke
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
17
31
|
class Aerosol::SshCommand < Aerosol::AbstractCommand
|
18
32
|
option ['-r', '--run'], :flag, 'run first ssh command', :attribute_name => :run_first
|
19
33
|
parameter 'DEPLOY', 'the deploy to list commands for', :attribute_name => :deploy_name
|
@@ -37,5 +51,6 @@ end
|
|
37
51
|
|
38
52
|
class Aerosol::Cli < Aerosol::AbstractCommand
|
39
53
|
subcommand ['ssh', 's'], 'Print ssh commands for latest running instances', Aerosol::SshCommand
|
54
|
+
subcommand ['deploy', 'd'], 'Run a deploy', Aerosol::DeployCommand
|
40
55
|
end
|
41
56
|
|
data/lib/aerosol/rake_task.rb
CHANGED
data/lib/aerosol/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aerosol
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.7.0.pre.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Swipely, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -270,9 +270,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
270
270
|
version: '0'
|
271
271
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
272
272
|
requirements:
|
273
|
-
- - "
|
273
|
+
- - ">"
|
274
274
|
- !ruby/object:Gem::Version
|
275
|
-
version:
|
275
|
+
version: 1.3.1
|
276
276
|
requirements: []
|
277
277
|
rubyforge_project:
|
278
278
|
rubygems_version: 2.4.5
|