mystro-client 0.1.0.rc3 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.ruby-version +1 -1
- data/CHANGELOG.md +6 -0
- data/Rakefile +1 -1
- data/bin/mystro +16 -4
- data/lib/mystro/client/version.rb +1 -1
- metadata +6 -6
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby-1.9.3-
|
1
|
+
ruby-1.9.3-p448@mystro
|
data/CHANGELOG.md
CHANGED
data/Rakefile
CHANGED
@@ -10,7 +10,7 @@ def changelog(last=nil, single=false)
|
|
10
10
|
|
11
11
|
ordered = list.lines.sort_by {|e| (a,b,c) = e.gsub(/^v/,"").split("."); "%3d%3d%3d" % [a, b, c]}
|
12
12
|
|
13
|
-
ordered.
|
13
|
+
ordered.reverse_each do |t|
|
14
14
|
tag = t.chomp
|
15
15
|
|
16
16
|
if last
|
data/bin/mystro
CHANGED
@@ -19,7 +19,7 @@ end
|
|
19
19
|
|
20
20
|
module Mystro
|
21
21
|
class Command < Clamp::Command
|
22
|
-
option %w{-
|
22
|
+
option %w{-x --account}, "ACCOUNT", "the account to filter with", default: nil, environment_variable: "MYSTRO_ACCOUNT"
|
23
23
|
option %w{-d --debug}, :flag, "turn on debugging", default: false do |v|
|
24
24
|
Mystro::Log.console_debug
|
25
25
|
end
|
@@ -79,18 +79,30 @@ module Mystro
|
|
79
79
|
subcommand "compute", "manage computes" do
|
80
80
|
self.default_subcommand = "list"
|
81
81
|
subcommand "list", "list computes" do
|
82
|
+
option %w{-a --all}, :flag, "show private ip information", default: false
|
82
83
|
def execute
|
83
84
|
client = get_client(:compute, account)
|
84
85
|
list = client.list
|
85
|
-
|
86
|
+
keys = %w{Account Environment Name Roles IP DNS}
|
87
|
+
if all?
|
88
|
+
keys << 'private_ip'
|
89
|
+
keys << 'private_dns'
|
90
|
+
end
|
91
|
+
Mystro::Log.warn Mystro::CLI.list(keys, list)
|
86
92
|
end
|
87
93
|
end
|
88
94
|
subcommand "search", "list computes" do
|
89
95
|
parameter "[PATTERN] ...", "show only matching this pattern"
|
96
|
+
option %w{-a --all}, :flag, "show private ip information", default: false
|
90
97
|
def execute
|
91
98
|
client = get_client(:compute, account)
|
92
99
|
list = client.search(pattern_list.join(","))
|
93
|
-
|
100
|
+
keys = %w{Account Environment Name Roles IP DNS}
|
101
|
+
if all?
|
102
|
+
keys << 'private_ip'
|
103
|
+
keys << 'private_dns'
|
104
|
+
end
|
105
|
+
Mystro::Log.warn Mystro::CLI.list(keys, list)
|
94
106
|
end
|
95
107
|
end
|
96
108
|
end
|
@@ -186,4 +198,4 @@ rescue => e
|
|
186
198
|
Mystro::Log.error "error: #{e.message}"
|
187
199
|
Mystro::Log.debug e
|
188
200
|
exit 1
|
189
|
-
end
|
201
|
+
end
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mystro-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.0
|
5
|
+
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Shawn Catanzarite
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-08-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: mystro-common
|
@@ -115,12 +115,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
115
115
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
116
116
|
none: false
|
117
117
|
requirements:
|
118
|
-
- - ! '
|
118
|
+
- - ! '>='
|
119
119
|
- !ruby/object:Gem::Version
|
120
|
-
version:
|
120
|
+
version: '0'
|
121
121
|
requirements: []
|
122
122
|
rubyforge_project:
|
123
|
-
rubygems_version: 1.8.
|
123
|
+
rubygems_version: 1.8.25
|
124
124
|
signing_key:
|
125
125
|
specification_version: 3
|
126
126
|
summary: mystro client
|