closh 0.0.1.alpha.1 → 0.0.1.beta.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c2ccd50d3128e79f0170e486c6c41960224e9a76
4
- data.tar.gz: b9e91861f3fc669bc8cf2dc1ca6d8c1bc45b51fd
3
+ metadata.gz: 2db4cb98fdc2d75d82dab92ec745d8650448a126
4
+ data.tar.gz: 11c52cda37c3c80ba58b8cd1f1503a9251ceeba5
5
5
  SHA512:
6
- metadata.gz: 334acd5b103683388a71123a76c0e75c4f1d3ef9123a19a6d5afc9169b77a7b9a8f93d65fbb8707bb0349deb2a81e2501126ea88773e0d6c579d72b0c52b116b
7
- data.tar.gz: f767a8e1e8279cefccfc8c63e02b83510d3e6b9d397b6e4e38958789accadc440ad584dd60d3b07c063b3e8c5cdfde53c0e2f2c4c3c573d6d7215ab52151768c
6
+ metadata.gz: 74c7db5ad32b09d73f771d543236abc9b7ac90657a947670955697b87a77d985ccc5d68fbd7daca0df3e5058ce9b4b1121c9b5674d285050b990834173d0cf24
7
+ data.tar.gz: 04232b53e5bdde8461e917011b5628ca7a6e482e9fbdf363aedfc15a3ca37681e0fddccf39ed3d4f6d8fe9f834d8a4990413c8052f8ee559509c5d2595889873
data/README.md CHANGED
@@ -1,7 +1,13 @@
1
1
  Cloud Shell
2
2
  ===========
3
3
 
4
- A shell running in the cloud
4
+ [![Gem](https://img.shields.io/gem/v/closh.svg)](https://rubygems.org/gems/closh)
5
+ [![Travis branch](https://img.shields.io/travis/vinc/closh/master.svg)](https://travis-ci.org/vinc/closh/branches)
6
+ [![Gemnasium](https://img.shields.io/gemnasium/vinc/closh.svg)](https://gemnasium.com/github.com/vinc/closh)
7
+
8
+ Get shell running in the cloud in seconds
9
+
10
+ [![asciicast](https://asciinema.org/a/146126.png)](https://asciinema.org/a/146126)
5
11
 
6
12
 
7
13
  Installation
@@ -7,10 +7,9 @@ require "yaml"
7
7
  module CloudShell
8
8
  module CLI
9
9
  def self.run
10
- opts = self.parse_opts(ARGV)
10
+ opts = parse_opts(ARGV)
11
11
 
12
- config_path = File.expand_path(opts[:config])
13
- config = YAML.load(ERB.new(File.read(config_path)).result).deep_symbolize_keys
12
+ config = load_config(File.expand_path(opts[:config]))
14
13
 
15
14
  shell = CloudShell::Session.new(config, opts)
16
15
 
@@ -42,6 +41,10 @@ module CloudShell
42
41
  end
43
42
  end
44
43
 
44
+ def self.load_config(path)
45
+ YAML.safe_load(ERB.new(File.read(path)).result).deep_symbolize_keys
46
+ end
47
+
45
48
  private
46
49
 
47
50
  def self.parse_opts(args)
@@ -25,6 +25,7 @@ module CloudShell
25
25
  def list_servers
26
26
  debug("listing servers on #{@provider} ...")
27
27
  @compute.servers.each do |server|
28
+ next unless server.ready?
28
29
  puts server.public_ip_address if server.public_ip_address
29
30
  end
30
31
  end
@@ -1,3 +1,3 @@
1
1
  module CloudShell
2
- VERSION = "0.0.1.alpha.1".freeze
2
+ VERSION = "0.0.1.beta.1".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: closh
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.alpha.1
4
+ version: 0.0.1.beta.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vincent Ollivier
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-17 00:00:00.000000000 Z
11
+ date: 2017-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport