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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5a96e75a7639dbf9316f223618691dd84549339a
4
- data.tar.gz: 477c9f72cb6475f12f7122983f9f78925cced019
3
+ metadata.gz: b8819f96c48ea7dd20ca4e8b8dd60f57438e8490
4
+ data.tar.gz: 1101234f4a09e3e3ab6c037a1ff2d508c1ebf667
5
5
  SHA512:
6
- metadata.gz: 86a6bdc81fee94cc1a8288afee120d949483ea541affb17c72818d662e73f5097b8c20155be380166a9cea66c4a16bd7ed90c020fa2d06c36b44bc1d24bc53ed
7
- data.tar.gz: 92ddc9ebeca1dc6119be18aa898f7d0771b32f4dd77380b85af04e5bad9c6e2953be11d10a7b34a5958f930fe58925a26527812f35aa4b8c04b16da43d4a5ef5
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
 
@@ -1,8 +1,6 @@
1
1
  require 'rake'
2
2
  require 'aerosol'
3
3
 
4
- $rake_task_logger = Dockly::Util::Logger.new('[aerosol rake_task]', STDOUT, false)
5
-
6
4
  class Rake::AutoScalingTask < Rake::Task
7
5
  def needed?
8
6
  !auto_scaling.exists?
@@ -1,5 +1,5 @@
1
1
  # Copyright Swipely, Inc. All rights reserved.
2
2
 
3
3
  module Aerosol
4
- VERSION = '1.6.0'
4
+ VERSION = '1.7.0.pre.1'
5
5
  end
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.6.0
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-02-24 00:00:00.000000000 Z
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: '0'
275
+ version: 1.3.1
276
276
  requirements: []
277
277
  rubyforge_project:
278
278
  rubygems_version: 2.4.5