mystro-client 0.1.0.rc3 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-1.9.3-p194
1
+ ruby-1.9.3-p448@mystro
data/CHANGELOG.md CHANGED
@@ -1,2 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.1.0.rc3:
4
+ * add cssh support for linux users
5
+
6
+ ## v0.1.0.rc2:
7
+ * fix mystro-common dependency
8
+
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.reject{|e| (a,b,c,d) = e.split("."); !d.nil?}.reverse_each do |t|
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{-a --account}, "ACCOUNT", "the account to filter with", default: nil, environment_variable: "MYSTRO_ACCOUNT"
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
- Mystro::Log.warn Mystro::CLI.list(%w{Account Environment Name Roles IP DNS}, list)
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
- Mystro::Log.warn Mystro::CLI.list(%w{Account Environment Name Roles IP DNS}, list)
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
@@ -5,7 +5,7 @@ unless defined?(Mystro::Client::Version)
5
5
  MAJOR = 0
6
6
  MINOR = 1
7
7
  TINY = 0
8
- TAG = "rc3"
8
+ TAG = nil
9
9
  STRING = [MAJOR, MINOR, TINY, TAG].compact.join('.')
10
10
  end
11
11
  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.rc3
5
- prerelease: 6
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-04-09 00:00:00.000000000 Z
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: 1.3.1
120
+ version: '0'
121
121
  requirements: []
122
122
  rubyforge_project:
123
- rubygems_version: 1.8.23
123
+ rubygems_version: 1.8.25
124
124
  signing_key:
125
125
  specification_version: 3
126
126
  summary: mystro client