ey_cli 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ey_cli (0.1.0)
4
+ ey_cli (0.1.1)
5
5
  faraday
6
6
  faraday-stack
7
7
  faraday_middleware
@@ -31,7 +31,7 @@ GEM
31
31
  json (1.6.1)
32
32
  multi_json (1.0.3)
33
33
  multipart-post (1.1.3)
34
- rack (1.3.3)
34
+ rack (1.3.4)
35
35
  rake (0.9.2)
36
36
  rspec (2.6.0)
37
37
  rspec-core (~> 2.6.0)
@@ -47,6 +47,7 @@ GEM
47
47
  crack (>= 0.1.7)
48
48
 
49
49
  PLATFORMS
50
+ java
50
51
  ruby
51
52
 
52
53
  DEPENDENCIES
data/README.md CHANGED
@@ -43,7 +43,7 @@ ey_cli deploy
43
43
  That's all, if the CLI doesn't know what you want to deploy it politely asks you.
44
44
 
45
45
  ## Avaliable commands
46
-
46
+ ```
47
47
  General info
48
48
  accounts List the accounts associated to a user.
49
49
  console Start an interactive session to use ey_cli.
@@ -57,7 +57,7 @@ ey_cli deploy
57
57
  Environments
58
58
  create_env Create a new environment for an application.
59
59
  deploy Run a deploy for an application.
60
-
60
+ ```
61
61
  ## Motivation
62
62
 
63
63
  engineyard gem is strongly coupled to Thor, and I don't like the
@@ -13,8 +13,8 @@ Gem::Specification.new do |s|
13
13
  ## If your rubyforge_project name is different, then edit it and comment out
14
14
  ## the sub! line in the Rakefile
15
15
  s.name = 'ey_cli'
16
- s.version = '0.1.0'
17
- s.date = '2011-10-15'
16
+ s.version = '0.1.1'
17
+ s.date = '2011-10-16'
18
18
  s.rubyforge_project = 'ey_cli'
19
19
 
20
20
  ## Make sure your summary is short. The description may be as long
data/history.md CHANGED
@@ -1,3 +1,10 @@
1
- ## 0.1.0
1
+ ## 0.1.1 (10-16-2011)
2
+
3
+ - Fix some log messages.
4
+ - Fix show command output when the application doesn't have environments or
5
+ instances.
6
+
7
+
8
+ ## 0.1.0 (10-15-2011)
2
9
 
3
10
  - Initial release.
@@ -1,5 +1,5 @@
1
1
  module EYCli
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
 
4
4
  require 'hashie/mash'
5
5
  require 'json'
@@ -9,7 +9,7 @@ module EYCli
9
9
  app = @apps.fetch_app(nil, options)
10
10
  if app
11
11
  EYCli.term.say info(app)
12
- EYCli.term.say status(app)
12
+ EYCli.term.say(status(app)) if app.environments
13
13
  end
14
14
  end
15
15
 
@@ -30,13 +30,16 @@ module EYCli
30
30
  - environment: #{env.framework_env}
31
31
  - stack: #{env.app_server_stack_name}
32
32
  - status: #{env.instance_status}}
33
- status << %Q{
34
- - instances:}
35
- env.instances.each do |instance|
33
+
34
+ if env.instances
36
35
  status << %Q{
36
+ - instances:}
37
+ env.instances.each do |instance|
38
+ status << %Q{
37
39
  + #{instance.role}:
38
40
  - Amazon ID: #{instance.amazon_id}
39
41
  - status: #{instance.status}}
42
+ end
40
43
  end
41
44
  end
42
45
  status
@@ -47,8 +47,8 @@ module EYCli
47
47
  end
48
48
  end
49
49
 
50
- def ask(prompt, protected_filed = false)
51
- if protected_filed
50
+ def ask(prompt, protected_field = false)
51
+ if protected_field
52
52
  terminal.ask(prompt) {|q| q.echo = '*'}
53
53
  else
54
54
  terminal.ask(prompt) {|q| q.readline = true}
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ey_cli
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - David Calavera
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-10-15 00:00:00 Z
18
+ date: 2011-10-16 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  version_requirements: &id001 !ruby/object:Gem::Requirement