jdc 0.1.1 → 0.1.2

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/README.md CHANGED
@@ -28,7 +28,7 @@ You need to provide your JingDong security credentials
28
28
 
29
29
  You can also specify these values via `ENV`:
30
30
 
31
- export ACCESS_KEY_ID='...'
31
+ export ACCESS_KEY='...'
32
32
  export SECRET_KEY='...'
33
33
 
34
34
  ##Usage
@@ -634,6 +634,7 @@ module JDC::Cli::Command
634
634
  def health(d)
635
635
  return 'N/A' unless (d and d[:state])
636
636
  return 'STOPPED' if d[:state] == 'STOPPED'
637
+ return 'SLEEPED' if d[:state] == 'SLEEPED'
637
638
 
638
639
  healthy_instances = d[:runningInstances]
639
640
  expected_instance = d[:instances]
@@ -2,6 +2,6 @@ module JDC
2
2
  module Cli
3
3
  # This version number is used as the RubyGem release version.
4
4
  # The internal JDC version number is JDC::VERSION.
5
- VERSION = '0.1.1'
5
+ VERSION = '0.1.2'
6
6
  end
7
7
  end
@@ -45,8 +45,8 @@ class JDC::Client
45
45
  target_url = target_url.gsub(/\/+$/, '')
46
46
  @target = target_url
47
47
  @auth_token = auth_token
48
- @access_key_id = ENV[JDC::ACCESS_KEY_ID]
49
- raise TargetError, "Please set the enviroment value:ACCESS_KEY_ID" unless @access_key_id
48
+ @access_key_id = ENV[JDC::ACCESS_KEY]
49
+ raise TargetError, "Please set the enviroment value:ACCESS_KEY" unless @access_key_id
50
50
  @secret_key = ENV[JDC::SECRET_KEY]
51
51
  raise TargetError, "Please set the enviroment value:SECRET_KEY" unless @secret_key
52
52
  end
@@ -2,7 +2,7 @@ module JDC
2
2
 
3
3
  # This is the internal JDC version number, and is not necessarily
4
4
  # the same as the RubyGem version (JDC::Cli::VERSION).
5
- VERSION = '0.1.1'
5
+ VERSION = '0.1.2'
6
6
 
7
7
  # Targets
8
8
  DEFAULT_TARGET = 'https://api.jd-app.com'
@@ -20,6 +20,6 @@ module JDC
20
20
  USERS_PATH = 'users'
21
21
 
22
22
  #Enviroment Argument
23
- ACCESS_KEY_ID = "ACCESS_KEY_ID"
23
+ ACCESS_KEY = "ACCESS_KEY"
24
24
  SECRET_KEY = "SECRET_KEY"
25
25
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jdc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-20 00:00:00.000000000 Z
12
+ date: 2013-07-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: thin
16
- requirement: &7445720 !ruby/object:Gem::Requirement
15
+ name: rake
16
+ requirement: &19057020 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,84 +21,101 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *7445720
24
+ version_requirements: *19057020
25
25
  - !ruby/object:Gem::Dependency
26
- name: json
27
- requirement: &7444020 !ruby/object:Gem::Requirement
26
+ name: addressable
27
+ requirement: &19056520 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
- - - ! '>='
30
+ - - ~>
31
31
  - !ruby/object:Gem::Version
32
- version: '0'
32
+ version: 2.2.6
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *7444020
35
+ version_requirements: *19056520
36
36
  - !ruby/object:Gem::Dependency
37
- name: em-websocket
38
- requirement: &7442820 !ruby/object:Gem::Requirement
37
+ name: interact
38
+ requirement: &19056020 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
- - - ! '>='
41
+ - - ~>
42
42
  - !ruby/object:Gem::Version
43
- version: '0'
43
+ version: 0.4.0
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *7442820
46
+ version_requirements: *19056020
47
47
  - !ruby/object:Gem::Dependency
48
- name: async_sinatra
49
- requirement: &7441400 !ruby/object:Gem::Requirement
48
+ name: json_pure
49
+ requirement: &19055540 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: 1.5.1
55
+ - - <
56
+ - !ruby/object:Gem::Version
57
+ version: 1.7.0
55
58
  type: :runtime
56
59
  prerelease: false
57
- version_requirements: *7441400
60
+ version_requirements: *19055540
58
61
  - !ruby/object:Gem::Dependency
59
- name: uuidtools
60
- requirement: &7440360 !ruby/object:Gem::Requirement
62
+ name: rb-readline
63
+ requirement: &19054820 !ruby/object:Gem::Requirement
61
64
  none: false
62
65
  requirements:
63
- - - ! '>='
66
+ - - ~>
64
67
  - !ruby/object:Gem::Version
65
- version: '0'
68
+ version: 0.4.2
66
69
  type: :runtime
67
70
  prerelease: false
68
- version_requirements: *7440360
71
+ version_requirements: *19054820
69
72
  - !ruby/object:Gem::Dependency
70
- name: interact
71
- requirement: &7439760 !ruby/object:Gem::Requirement
73
+ name: rest-client
74
+ requirement: &19054340 !ruby/object:Gem::Requirement
72
75
  none: false
73
76
  requirements:
74
77
  - - ! '>='
75
78
  - !ruby/object:Gem::Version
76
- version: '0'
79
+ version: 1.6.1
80
+ - - <
81
+ - !ruby/object:Gem::Version
82
+ version: 1.7.0
77
83
  type: :runtime
78
84
  prerelease: false
79
- version_requirements: *7439760
85
+ version_requirements: *19054340
80
86
  - !ruby/object:Gem::Dependency
81
- name: caldecott
82
- requirement: &7438440 !ruby/object:Gem::Requirement
87
+ name: rubyzip
88
+ requirement: &19053620 !ruby/object:Gem::Requirement
83
89
  none: false
84
90
  requirements:
85
- - - =
91
+ - - ~>
86
92
  - !ruby/object:Gem::Version
87
- version: 0.0.3
93
+ version: 0.9.4
88
94
  type: :runtime
89
95
  prerelease: false
90
- version_requirements: *7438440
96
+ version_requirements: *19053620
91
97
  - !ruby/object:Gem::Dependency
92
- name: rack
93
- requirement: &7436880 !ruby/object:Gem::Requirement
98
+ name: terminal-table
99
+ requirement: &19053160 !ruby/object:Gem::Requirement
94
100
  none: false
95
101
  requirements:
96
- - - ! '>='
102
+ - - ~>
97
103
  - !ruby/object:Gem::Version
98
- version: 1.2.0
104
+ version: 1.4.2
99
105
  type: :runtime
100
106
  prerelease: false
101
- version_requirements: *7436880
107
+ version_requirements: *19053160
108
+ - !ruby/object:Gem::Dependency
109
+ name: uuidtools
110
+ requirement: &19052700 !ruby/object:Gem::Requirement
111
+ none: false
112
+ requirements:
113
+ - - ~>
114
+ - !ruby/object:Gem::Version
115
+ version: 2.1.0
116
+ type: :runtime
117
+ prerelease: false
118
+ version_requirements: *19052700
102
119
  description: JDC Client for JingDong Cloud
103
120
  email: jdc@jd.com
104
121
  executables:
@@ -110,40 +127,40 @@ files:
110
127
  - LICENSE
111
128
  - caldecott_helper/server.rb
112
129
  - bin/jdc
130
+ - lib/cli.rb
131
+ - lib/jdc.rb
132
+ - lib/jdc/micro.rb
113
133
  - lib/jdc/const.rb
134
+ - lib/jdc/signer.rb
135
+ - lib/jdc/timer.rb
136
+ - lib/jdc/micro/switcher/dummy.rb
114
137
  - lib/jdc/micro/switcher/darwin.rb
115
- - lib/jdc/micro/switcher/windows.rb
116
138
  - lib/jdc/micro/switcher/base.rb
117
139
  - lib/jdc/micro/switcher/linux.rb
118
- - lib/jdc/micro/switcher/dummy.rb
140
+ - lib/jdc/micro/switcher/windows.rb
119
141
  - lib/jdc/micro/vmrun.rb
120
- - lib/jdc/client.rb
121
- - lib/jdc/signer.rb
122
142
  - lib/jdc/signature/version.rb
123
- - lib/jdc/micro.rb
124
- - lib/jdc/timer.rb
125
- - lib/jdc.rb
126
- - lib/cli/manifest_helper.rb
127
- - lib/cli/services_helper.rb
128
- - lib/cli/tunnel_helper.rb
129
- - lib/cli/version.rb
130
- - lib/cli/usage.rb
143
+ - lib/jdc/client.rb
131
144
  - lib/cli/errors.rb
132
- - lib/cli/console_helper.rb
133
- - lib/cli/frameworks.rb
134
145
  - lib/cli/zip_util.rb
135
146
  - lib/cli/core_ext.rb
136
- - lib/cli/commands/misc.rb
147
+ - lib/cli/console_helper.rb
148
+ - lib/cli/usage.rb
137
149
  - lib/cli/commands/services.rb
138
- - lib/cli/commands/admin.rb
150
+ - lib/cli/commands/micro.rb
151
+ - lib/cli/commands/misc.rb
139
152
  - lib/cli/commands/base.rb
140
153
  - lib/cli/commands/apps.rb
141
- - lib/cli/commands/micro.rb
142
154
  - lib/cli/commands/manifest.rb
143
155
  - lib/cli/commands/user.rb
156
+ - lib/cli/commands/admin.rb
157
+ - lib/cli/frameworks.rb
158
+ - lib/cli/version.rb
144
159
  - lib/cli/runner.rb
160
+ - lib/cli/manifest_helper.rb
161
+ - lib/cli/services_helper.rb
145
162
  - lib/cli/config.rb
146
- - lib/cli.rb
163
+ - lib/cli/tunnel_helper.rb
147
164
  - config/micro/paths.yml
148
165
  - config/clients.yml
149
166
  - config/micro/refresh_ip.rb
@@ -173,3 +190,4 @@ signing_key:
173
190
  specification_version: 3
174
191
  summary: JDC Client for JingDong Cloud
175
192
  test_files: []
193
+ has_rdoc: