viaduct-toolkit 1.0.8 → 1.0.9

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: b42c0089908706f994489f0605d4db622c133ea4
4
- data.tar.gz: 7b7210759489af94bb3631d043962c051e4de9d9
3
+ metadata.gz: 54397867692088f4b304e2646a73db4ddf1d1353
4
+ data.tar.gz: bee8a5c74ad804d4adb10d515bd859aaa37898ef
5
5
  SHA512:
6
- metadata.gz: 590dd2c1bbf38111fd6f2aa517dada71d57addfec204a261de94dcaac57c2f07aeb24acd14cfd527787c9e04f8495a805eafd1eae2e359fa19842ee22ea0b86e
7
- data.tar.gz: b8862753e232b2bb94a01f87943b78590d33bbac044c931846aead5099246e065a438bc2e50fed3323fd99880805bb29d0def18e9d55cc8d394cd5b045138d96
6
+ metadata.gz: c6fcddf16110648b224be3aabea36bbeedb0fc8182444f1eb31ddc03a7710a29a4b5f0398f51c11fab7563fd6f2ce4c61047d3ed1214722127c2b3ceb087a270
7
+ data.tar.gz: 98c74f7e7622382bc38b57efc10f2ab02bd5dbbb773b621ea825011cda5859f87a748318f5b22066f9068d9e222cb5dd4c02cf41250dafeb38a5f79ef53399d7
data/Gemfile CHANGED
@@ -4,6 +4,7 @@ gem "viaduct-api", '~> 1.0', '>= 1.0.7'
4
4
  gem "colorize", "~> 0.7"
5
5
  gem "terminal-table", '~> 1.4', '>= 1.4.5'
6
6
  gem "launchy", ">= 2.4.2", "< 3.0"
7
+ gem "eventmachine", ">= 1.0.7", "< 1.1"
7
8
 
8
9
  group :development do
9
10
  gem 'rake'
data/Gemfile.lock CHANGED
@@ -5,7 +5,7 @@ GEM
5
5
  colorize (0.7.3)
6
6
  commander (4.2.1)
7
7
  highline (~> 1.6.11)
8
- eventmachine (1.0.3)
8
+ eventmachine (1.0.7)
9
9
  faye-websocket (0.8.0)
10
10
  eventmachine (>= 0.12.0)
11
11
  websocket-driver (>= 0.4.0)
@@ -28,6 +28,7 @@ PLATFORMS
28
28
  DEPENDENCIES
29
29
  colorize (~> 0.7)
30
30
  commander (~> 4.2)
31
+ eventmachine (>= 1.0.7, < 1.1)
31
32
  launchy (>= 2.4.2, < 3.0)
32
33
  rake
33
34
  terminal-table (~> 1.4, >= 1.4.5)
@@ -5,6 +5,7 @@ Viaduct::Toolkit.cli.command "app:console" do |c|
5
5
  c.option "--disable", "Disable access to the SSH console"
6
6
  c.option "--enable", "Enable access to the SSH console"
7
7
  c.option "--status", "Display the status of the port forward"
8
+ c.option "-A", "--forward-agent", "Forward agent to this SSH session"
8
9
 
9
10
  c.action do |args, opts|
10
11
  include Commander::Methods
@@ -65,7 +66,9 @@ Viaduct::Toolkit.cli.command "app:console" do |c|
65
66
  end
66
67
 
67
68
  else
68
- exec_console_command(console, "ssh vdt@#{console['ip_address']} -p #{console['port']}")
69
+ ssh_opts = ["-p #{console['port']}"]
70
+ ssh_opts << "-A" if opts.forward_agent
71
+ exec_console_command(console, "ssh #{ssh_opts.join(' ')} vdt@#{console['ip_address']}")
69
72
  end
70
73
  end
71
74
  end
@@ -12,7 +12,7 @@ Viaduct::Toolkit.cli.command "app:info" do |c|
12
12
  field "Viaduct Domain", application['viaduct_domain']
13
13
  field "Status", application['status']
14
14
  field "Maintenance", application['maintenance?'] ? 'Yes' : 'No'
15
- field 'Owner', "#{application['user']['name']} (#{application['user']['username']})"
15
+ field 'Owner', "#{application['owner']['owner']['name']} (#{application['owner']['owner']['username']})"
16
16
  field "Zone", application['zone']['name']
17
17
  field "Platform", "#{application['platform']['name']} (on #{application['platform']['stack']['name']} stack)"
18
18
  field "Subnet(s)", application['subnets'].map { |s| s['description'] }.join(', ')
@@ -27,7 +27,7 @@ Viaduct::Toolkit.cli.command "app:list" do |c|
27
27
  end
28
28
  else
29
29
  rows = applications.map do |app|
30
- [app['name'], app['subdomain'], app['status'], app['user']['name']]
30
+ [app['name'], app['subdomain'], app['status'], app['owner'] && app['owner']['owner'] ? app['owner']['owner']['name'] : '']
31
31
  end
32
32
  table ['Name', 'Subdomain', 'Status', 'Owner'], rows
33
33
  end
@@ -1,5 +1,5 @@
1
1
  module Viaduct
2
2
  module Toolkit
3
- VERSION = '1.0.8'
3
+ VERSION = '1.0.9'
4
4
  end
5
5
  end
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
16
16
  s.add_dependency 'addressable', '= 2.3.6'
17
17
  s.add_dependency 'colorize', '= 0.7.3'
18
18
  s.add_dependency 'commander', '= 4.2.1'
19
- s.add_dependency 'eventmachine', '= 1.0.3'
19
+ s.add_dependency 'eventmachine', '= 1.0.7'
20
20
  s.add_dependency 'faye-websocket', '= 0.8.0'
21
21
  s.add_dependency 'highline', '= 1.6.21'
22
22
  s.add_dependency 'json', '= 1.8.1'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: viaduct-toolkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.8
4
+ version: 1.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Cooke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-21 00:00:00.000000000 Z
11
+ date: 2015-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 1.0.3
61
+ version: 1.0.7
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - '='
67
67
  - !ruby/object:Gem::Version
68
- version: 1.0.3
68
+ version: 1.0.7
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: faye-websocket
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -251,9 +251,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
251
251
  version: '0'
252
252
  requirements: []
253
253
  rubyforge_project:
254
- rubygems_version: 2.2.2
254
+ rubygems_version: 2.4.5
255
255
  signing_key:
256
256
  specification_version: 4
257
257
  summary: A developer toolkit for working with Viaduct from an CLI
258
258
  test_files: []
259
- has_rdoc: