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 ADDED
@@ -0,0 +1,14 @@
1
+ ---
2
+ crackin:
3
+ name: mystro-client
4
+ scm: git
5
+ changelog: CHANGELOG.md
6
+ branch:
7
+ production: master
8
+ development: develop
9
+ status:
10
+ verbose: true
11
+ version: lib/mystro/client/version.rb
12
+ build:
13
+ command: rake build
14
+ after: []
data/CHANGELOG.md CHANGED
@@ -1,25 +1,36 @@
1
- # Changelog
1
+ ### Changelog
2
2
 
3
- ## v0.3.0:
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
- ## v0.2.0:
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
- ## v0.1.0.rc3:
21
+ ##### v0.1.0:
22
+
23
+ ##### v0.1.0.rc3:
14
24
  * add cssh support for linux users
15
25
 
16
- ## v0.1.0.rc2:
26
+ ##### v0.1.0.rc2:
17
27
  * fix mystro-common dependency
18
28
 
19
- ## v0.1.0.rc1:
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
- if ENV["MYSTRO_DEV"]
7
- gem "mystro-common", :path => "../common"
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 "mongo"
14
- gem "bson_ext"
9
+ gem 'mongo'
10
+ gem 'bson_ext'
15
11
 
16
- gem "chef", "~> 10.20.0"
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", default: "ubuntu"
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
- Mystro::Log.info "connecting as #{user} to #{o["long"] if o["long"]} (#{o["dns"]}) : #{options}"
47
- exec("ssh #{options} #{user}@#{host}")
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", default: "ubuntu"
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", default: "ubuntu"
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)
@@ -12,7 +12,6 @@ module Mystro
12
12
  end
13
13
 
14
14
  def list(keys, list)
15
- #ap list
16
15
  rows = []
17
16
  list.each do |l|
18
17
  row = []
@@ -2,12 +2,12 @@ unless defined?(Mystro::Client::Version)
2
2
  module Mystro
3
3
  module Client
4
4
  module Version
5
- MAJOR = 0
6
- MINOR = 3
7
- TINY = 1
8
- TAG = nil
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.1
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: 2013-10-11 00:00:00.000000000 Z
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: '0'
124
+ version: 1.3.1
121
125
  requirements: []
122
126
  rubyforge_project:
123
127
  rubygems_version: 1.8.25