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 +4 -4
- data/README.md +7 -1
- data/lib/closh/cli.rb +6 -3
- data/lib/closh/session.rb +1 -0
- data/lib/closh/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2db4cb98fdc2d75d82dab92ec745d8650448a126
|
4
|
+
data.tar.gz: 11c52cda37c3c80ba58b8cd1f1503a9251ceeba5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
data/lib/closh/cli.rb
CHANGED
@@ -7,10 +7,9 @@ require "yaml"
|
|
7
7
|
module CloudShell
|
8
8
|
module CLI
|
9
9
|
def self.run
|
10
|
-
opts =
|
10
|
+
opts = parse_opts(ARGV)
|
11
11
|
|
12
|
-
|
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)
|
data/lib/closh/session.rb
CHANGED
data/lib/closh/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2017-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|