deploy-cli 0.2.5 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/deploy +11 -4
  3. data/lib/deploy/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5aa36ae8850baedbe918c8f8c4e826ff96e815c3
4
- data.tar.gz: 74230a2dd19aae06497d3f33fac540d032d42499
3
+ metadata.gz: e7cf3270481ef86c63b8cfd3f2cac965e6fba3aa
4
+ data.tar.gz: 7755eabaa18391a01b05c4dfc2d1925de50fa34f
5
5
  SHA512:
6
- metadata.gz: c4c653af5f040ab3207e90254a995035a6d6e4bb8f35629d7de60dc2a354e8a69c8d039eed6b829ea44bbfe2eee72c3b716b9f479adcfbb3c1a24c7e033d80d9
7
- data.tar.gz: 98d5dfdb3dceebc31c81f3e480c2ebcfdd9302fbd92d0e8652079147a94f6fb7dbb5c492add0c0e55639d11c47ca299aad2f6ebbdfb73af8e27a5f0997558766
6
+ metadata.gz: 38dd6ff3b78a678ec056af244749ba2ada9c7d16bf014741f711a5ca2b8a2f000cdc035d5771db34c7290fdb6bbc3ba5612d051a6031b654abf0209b86b1880e
7
+ data.tar.gz: 41c26213d1b484ba6f5a789436f203e527390997fb2e54a44dc8bcae264b552d7763074ad55d5b1a8230488be0fe4d2b2be9673d37afad675ccd71711d2e2653
data/bin/deploy CHANGED
@@ -23,6 +23,15 @@ module Deploy
23
23
  puts JSON.dump(spec)
24
24
  end
25
25
 
26
+ desc "ls", "Shows all stages"
27
+ def ls filter = nil
28
+ file = _find
29
+ data = YAML.load_file(file)
30
+ data.each do |stage, plan|
31
+ puts stage
32
+ end
33
+ end
34
+
26
35
  desc "to STAGE", "Deploys to STAGE"
27
36
  def to stage
28
37
  file = _find
@@ -43,13 +52,11 @@ module Deploy
43
52
  return options[:file] if options[:file]
44
53
 
45
54
  files = ["deploy.yaml"]
46
- dirs = [".", ENV["HOME"], "/etc/deploy-cli"]
55
+ dirs = [".", ENV["HOME"], "/etc/deploy-cli"]
47
56
  dirs.each do |dir|
48
57
  files.each do |file|
49
58
  path = "#{dir}/#{file}"
50
- if File.exists? path
51
- return path
52
- end
59
+ return path if File.exists? path
53
60
  end
54
61
  end
55
62
  return false
@@ -1,5 +1,5 @@
1
1
  module Deploy
2
2
 
3
- VERSION = "0.2.5"
3
+ VERSION = "0.2.6"
4
4
 
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deploy-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - ptdorf
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-29 00:00:00.000000000 Z
11
+ date: 2016-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor