mystro-client 0.3.1 → 0.3.2.rc0
Sign up to get free protection for your applications and to get access to all the features.
- data/.crackin.yml +14 -0
- data/CHANGELOG.md +17 -6
- data/Gemfile +7 -9
- data/bin/mystro +8 -7
- data/lib/mystro/client/cli.rb +0 -1
- data/lib/mystro/client/version.rb +5 -5
- metadata +9 -5
data/.crackin.yml
ADDED
data/CHANGELOG.md
CHANGED
@@ -1,25 +1,36 @@
|
|
1
|
-
|
1
|
+
### Changelog
|
2
2
|
|
3
|
-
|
3
|
+
##### v0.3.2.rc0:
|
4
|
+
* setup crackin
|
5
|
+
* clean up deps, remove awesome print calls.
|
6
|
+
* change handling of users to support new image user data returned by server
|
7
|
+
|
8
|
+
##### v0.3.1:
|
9
|
+
* sync versions between server, client and common
|
10
|
+
|
11
|
+
##### v0.3.0:
|
4
12
|
* sync version with server
|
5
13
|
|
6
|
-
|
14
|
+
##### v0.2.0:
|
7
15
|
* fixes for new mystro version
|
8
16
|
* orgs
|
9
17
|
* initial release
|
10
18
|
* update ruby version
|
11
19
|
* ruby version file
|
12
20
|
|
13
|
-
|
21
|
+
##### v0.1.0:
|
22
|
+
|
23
|
+
##### v0.1.0.rc3:
|
14
24
|
* add cssh support for linux users
|
15
25
|
|
16
|
-
|
26
|
+
##### v0.1.0.rc2:
|
17
27
|
* fix mystro-common dependency
|
18
28
|
|
19
|
-
|
29
|
+
##### v0.1.0.rc1:
|
20
30
|
* initial release
|
21
31
|
* update ruby version
|
22
32
|
* ruby version file
|
23
33
|
* add cssh support for linux users
|
24
34
|
* fix mystro-common dependency
|
25
35
|
|
36
|
+
|
data/Gemfile
CHANGED
@@ -3,14 +3,12 @@ source 'https://rubygems.org'
|
|
3
3
|
# Specify your gem's dependencies in mystro-client.gemspec
|
4
4
|
gemspec
|
5
5
|
|
6
|
-
|
7
|
-
|
8
|
-
else
|
9
|
-
gem "mystro-common"
|
10
|
-
end
|
11
|
-
gem "awesome_print"
|
6
|
+
gem 'rake', '10.1.1'
|
7
|
+
#gem 'mystro-common', github: 'mystro/common', branch: 'develop'
|
12
8
|
|
13
|
-
gem
|
14
|
-
gem
|
9
|
+
gem 'mongo'
|
10
|
+
gem 'bson_ext'
|
15
11
|
|
16
|
-
gem
|
12
|
+
gem 'chef', '~> 11.8.2'
|
13
|
+
|
14
|
+
gem 'crackin'
|
data/bin/mystro
CHANGED
@@ -27,7 +27,7 @@ module Mystro
|
|
27
27
|
Mystro::Log.console_quiet
|
28
28
|
end
|
29
29
|
subcommand "ssh", "ssh to server" do
|
30
|
-
option %w{-x --user}, "USER", "the user to connect as"
|
30
|
+
option %w{-x --user}, "USER", "the user to connect as"
|
31
31
|
option %w{-o --options}, "[OPTIONS]", "additional ssh options"
|
32
32
|
parameter "PATTERN ...", "name or pattern of server"
|
33
33
|
|
@@ -43,12 +43,15 @@ module Mystro
|
|
43
43
|
|
44
44
|
raise "host name not set" unless host
|
45
45
|
|
46
|
-
|
47
|
-
|
46
|
+
u = user || Mystro.config.ssh? && Mystro.config.ssh.user || o['user']
|
47
|
+
raise 'no user' unless u
|
48
|
+
|
49
|
+
Mystro::Log.info "connecting as #{u} to #{o["long"] if o["long"]} (#{o["dns"]}) : #{options}"
|
50
|
+
exec("ssh #{options} #{u}@#{host}")
|
48
51
|
end
|
49
52
|
end
|
50
53
|
subcommand "csshx", "use csshx to connect to all servers of search" do
|
51
|
-
option %w{-x --user}, "USER", "the user to connect as"
|
54
|
+
option %w{-x --user}, "USER", "the user to connect as"
|
52
55
|
option %w{-o --options}, "[OPTIONS]", "additional ssh options"
|
53
56
|
parameter "PATTERN ...", "name or pattern of servers"
|
54
57
|
|
@@ -62,7 +65,7 @@ module Mystro
|
|
62
65
|
end
|
63
66
|
end
|
64
67
|
subcommand "cssh", "use cssh to connect to all servers of search" do
|
65
|
-
option %w{-x --user}, "USER", "the user to connect as"
|
68
|
+
option %w{-x --user}, "USER", "the user to connect as"
|
66
69
|
option %w{-o --options}, "[OPTIONS]", "additional ssh options"
|
67
70
|
parameter "PATTERN ...", "name or pattern of servers"
|
68
71
|
|
@@ -122,7 +125,6 @@ module Mystro
|
|
122
125
|
self.default_subcommand = "list"
|
123
126
|
subcommand "list", "list organizations" do
|
124
127
|
def execute
|
125
|
-
ap Mystro.config.to_hash
|
126
128
|
client = get_client(:organization, organization)
|
127
129
|
list = client.list
|
128
130
|
Mystro::Log.warn Mystro::CLI.list(%w{Name Enabled File}, list)
|
@@ -134,7 +136,6 @@ module Mystro
|
|
134
136
|
self.default_subcommand = "list"
|
135
137
|
subcommand "list", "list templates" do
|
136
138
|
def execute
|
137
|
-
ap Mystro.config.to_hash
|
138
139
|
client = get_client(:template, organization)
|
139
140
|
list = client.list
|
140
141
|
Mystro::Log.warn Mystro::CLI.list(%w{Name Enabled File}, list)
|
data/lib/mystro/client/cli.rb
CHANGED
@@ -2,12 +2,12 @@ unless defined?(Mystro::Client::Version)
|
|
2
2
|
module Mystro
|
3
3
|
module Client
|
4
4
|
module Version
|
5
|
-
MAJOR
|
6
|
-
MINOR
|
7
|
-
TINY
|
8
|
-
TAG
|
5
|
+
MAJOR = 0
|
6
|
+
MINOR = 3
|
7
|
+
TINY = 2
|
8
|
+
TAG = 'rc0'
|
9
9
|
STRING = [MAJOR, MINOR, TINY, TAG].compact.join('.')
|
10
10
|
end
|
11
11
|
end
|
12
12
|
end
|
13
|
-
end
|
13
|
+
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.3.
|
5
|
-
prerelease:
|
4
|
+
version: 0.3.2.rc0
|
5
|
+
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Shawn Catanzarite
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2014-02-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: mystro-common
|
@@ -83,6 +83,7 @@ executables:
|
|
83
83
|
extensions: []
|
84
84
|
extra_rdoc_files: []
|
85
85
|
files:
|
86
|
+
- .crackin.yml
|
86
87
|
- .gitignore
|
87
88
|
- .ruby-version
|
88
89
|
- CHANGELOG.md
|
@@ -112,12 +113,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
112
113
|
- - ! '>='
|
113
114
|
- !ruby/object:Gem::Version
|
114
115
|
version: '0'
|
116
|
+
segments:
|
117
|
+
- 0
|
118
|
+
hash: -4331835519347130215
|
115
119
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
116
120
|
none: false
|
117
121
|
requirements:
|
118
|
-
- - ! '
|
122
|
+
- - ! '>'
|
119
123
|
- !ruby/object:Gem::Version
|
120
|
-
version:
|
124
|
+
version: 1.3.1
|
121
125
|
requirements: []
|
122
126
|
rubyforge_project:
|
123
127
|
rubygems_version: 1.8.25
|