ukku 0.2.2 → 0.3.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8c0a07ab01d66c7f5cd95a53f3aff08bc9d86daa
4
- data.tar.gz: 978dd591fc8ce3ceb9c04f3c68418238305d62ec
3
+ metadata.gz: f796203fe66b79ad9606de21538a2d0fd6d4c8e0
4
+ data.tar.gz: adb2ba0485a7b1a9e2e5bc18c8b9aab741ec1fab
5
5
  SHA512:
6
- metadata.gz: 4674aa0bf3ab0a7d6f8f83be7da985ee257e0f04cb7b34a235a162bb22aef098c7bc6126edd101662b755abcd4d774315759a5c66d238fd3fa59d9606517ea23
7
- data.tar.gz: e962080e4d41d9e9046026f14ab2b794d7c3ab7c6d49e67a596e8d51266f8921ea66decdc496320539eea2376e63ac516868a2324aab200b7bc810a095d488c7
6
+ metadata.gz: 9e4f72acb0ba86bed76078b98b83168908eff1e99648cab2a0671155dd79c8fcdaa8d1ce3af3f01329af6f4430b65d5f13b84b39e7137aef7d16467b4745a913
7
+ data.tar.gz: 350bd7e0c47ac963f01f88477db653447ac684615359a773a374c52c67871f3a47dff91ea41c7238b78a9239a10953b4e45896a0df90d310dea5c0e054984097
data/bin/ukku CHANGED
@@ -18,7 +18,7 @@ Usage:
18
18
  ukku [--app=NAME] ps
19
19
  ukku [--app=NAME] ps:add TYPE
20
20
  ukku [--app=NAME] ps:remove TYPE
21
- ukku [--app=NAME] ps:restart [TYPE]
21
+ ukku [--app=NAME] ps:restart
22
22
 
23
23
  Arguments:
24
24
  HOST Domain or IP of your server.
@@ -46,6 +46,7 @@ begin
46
46
  PsCommand.new.execute(args) if args['ps']
47
47
  PsAddCommand.new.execute(args) if args['ps:add']
48
48
  PsRemoveCommand.new.execute(args) if args['ps:remove']
49
+ PsRestartCommand.new.execute(args) if args['ps:restart']
49
50
  rescue Docopt::Exit => e
50
51
  puts doc.strip
51
52
  rescue NoApplicationError => e
@@ -11,3 +11,4 @@ require 'ukku/upload_key_command.rb'
11
11
  require 'ukku/ps_command.rb'
12
12
  require 'ukku/ps_add_command.rb'
13
13
  require 'ukku/ps_remove_command.rb'
14
+ require 'ukku/ps_restart_command.rb'
@@ -0,0 +1,12 @@
1
+ class PsRestartCommand < Command
2
+ def execute(args)
3
+ app_info = load_app_info(args)
4
+
5
+ puts "Restarting processes on #{app_info[:host]} ..."
6
+ conn = Connection.new(app_info)
7
+ begin
8
+ conn.execute("launchapp")
9
+ rescue Subprocess::NonZeroExit => e
10
+ end
11
+ end
12
+ end
@@ -1,3 +1,3 @@
1
1
  module Ukku
2
- VERSION = '0.2.2'
2
+ VERSION = '0.3.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ukku
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Germán Escobar
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-13 00:00:00.000000000 Z
11
+ date: 2015-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -131,6 +131,7 @@ files:
131
131
  - lib/ukku/ps_add_command.rb
132
132
  - lib/ukku/ps_command.rb
133
133
  - lib/ukku/ps_remove_command.rb
134
+ - lib/ukku/ps_restart_command.rb
134
135
  - lib/ukku/run_command.rb
135
136
  - lib/ukku/set_var_command.rb
136
137
  - lib/ukku/upload_key_command.rb