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.
- checksums.yaml +4 -4
- data/bin/deploy +11 -4
- data/lib/deploy/version.rb +1 -1
- 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: e7cf3270481ef86c63b8cfd3f2cac965e6fba3aa
|
4
|
+
data.tar.gz: 7755eabaa18391a01b05c4dfc2d1925de50fa34f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
data/lib/deploy/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2016-08-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|