eventhub-command 0.2.7 → 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 +4 -4
- data/README.md +1 -1
- data/lib/deployer/base_deployer.rb +2 -2
- data/lib/deployer/executor.rb +1 -1
- data/lib/deployer/net_ssh_extension.rb +9 -1
- data/lib/deployer/stage.rb +9 -0
- data/lib/deployer.rb +1 -0
- data/lib/eh/commands/deploy_config.rb +1 -6
- data/lib/eh/settings.rb +5 -0
- data/lib/eh/version.rb +1 -1
- data/lib/eh-commands.rb +2 -0
- 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: 5c253f8e84ba12dc215b82ee40d0818a6d50f525
|
4
|
+
data.tar.gz: 59231b7c8a024d72664bcbc64bc446c7b4b71f11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3aeb89f814a1f10bba9e17ed743b39aabb987ce3998f22896e5d7417f0764e59fb62a543c80dbd08ffa72c6193dca5c24fd655d35dde2584db63fefbda98fe9f
|
7
|
+
data.tar.gz: a781e749277cd6d23d58f5d65af5bbc6b6bf810c86017e9aae1efec7db0062ac3d53f20898126e88c7f9432e31751f819c48bd843b4d98282ea5979276c9b1c0
|
data/README.md
CHANGED
@@ -70,7 +70,7 @@ Some common options are:
|
|
70
70
|
* --verbose (enable verbose output)
|
71
71
|
|
72
72
|
### Commands
|
73
|
-
|
73
|
+
* deploy_console: deploy the ruby on rails app 'console'
|
74
74
|
* deploy_ruby: deploy a ruby processor to a stage. You can specify:
|
75
75
|
* a processor name
|
76
76
|
* multiple processor names spearated via commas
|
@@ -19,7 +19,7 @@ class Deployer::BaseDeployer
|
|
19
19
|
end
|
20
20
|
|
21
21
|
def base_dir
|
22
|
-
"
|
22
|
+
"~/apps/event_hub"
|
23
23
|
end
|
24
24
|
|
25
25
|
def deploy_log_file
|
@@ -140,7 +140,7 @@ class Deployer::BaseDeployer
|
|
140
140
|
end
|
141
141
|
end
|
142
142
|
if abort
|
143
|
-
puts
|
143
|
+
puts "Not all requested components are available in #{cached_copy_dir}. Will abort.".red
|
144
144
|
raise
|
145
145
|
end
|
146
146
|
|
data/lib/deployer/executor.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
class Net::SSH::Connection::Session
|
2
2
|
|
3
|
-
def exec_sc!(command)
|
3
|
+
def exec_sc!(command, verbose = false)
|
4
4
|
stdout_data,stderr_data = "",""
|
5
5
|
exit_code, exit_signal = nil,nil
|
6
6
|
self.open_channel do |channel|
|
@@ -8,10 +8,18 @@ class Net::SSH::Connection::Session
|
|
8
8
|
raise "Command \"#{command}\" was unable to execute" unless success
|
9
9
|
|
10
10
|
channel.on_data do |_, data|
|
11
|
+
if verbose
|
12
|
+
puts
|
13
|
+
puts data.light_blue.on_white if verbose
|
14
|
+
end
|
11
15
|
stdout_data += data
|
12
16
|
end
|
13
17
|
|
14
18
|
channel.on_extended_data do |_, _, data|
|
19
|
+
if verbose
|
20
|
+
puts
|
21
|
+
puts data.light_blue.on_white if verbose
|
22
|
+
end
|
15
23
|
stderr_data += data
|
16
24
|
end
|
17
25
|
|
data/lib/deployer/stage.rb
CHANGED
@@ -12,6 +12,15 @@ class Deployer::Stage
|
|
12
12
|
port: port,
|
13
13
|
user: user
|
14
14
|
}
|
15
|
+
self
|
16
|
+
end
|
17
|
+
|
18
|
+
# returns a new stage which only contains one host
|
19
|
+
#
|
20
|
+
def single_host_stage
|
21
|
+
stage = Deployer::Stage.new(name)
|
22
|
+
stage.host(hosts[0][:host], hosts[0][:port], hosts[0][:user])
|
23
|
+
stage
|
15
24
|
end
|
16
25
|
|
17
26
|
def self.load(name, file)
|
data/lib/deployer.rb
CHANGED
@@ -8,11 +8,6 @@ command :deploy_config do |c|
|
|
8
8
|
c.switch([:v, :verbose], :desc => 'Show additional output.')
|
9
9
|
|
10
10
|
c.action do |global_options, options, args|
|
11
|
-
|
12
|
-
Deployer::ConfigDeployer.new(options).deploy!
|
13
|
-
rescue => e
|
14
|
-
puts e.message
|
15
|
-
puts e.backtrace.join("\n")
|
16
|
-
end
|
11
|
+
Deployer::ConfigDeployer.new(options).deploy!
|
17
12
|
end
|
18
13
|
end
|
data/lib/eh/settings.rb
CHANGED
@@ -68,6 +68,7 @@ class Eh::Settings
|
|
68
68
|
File.join(repository.dir, 'releases', *extra_paths)
|
69
69
|
end
|
70
70
|
|
71
|
+
|
71
72
|
def rails_release_dir
|
72
73
|
releases_dir('rails')
|
73
74
|
end
|
@@ -80,6 +81,10 @@ class Eh::Settings
|
|
80
81
|
File.join(repository.dir, 'src', 'ruby')
|
81
82
|
end
|
82
83
|
|
84
|
+
def console_source_dir
|
85
|
+
File.join(repository.dir, 'src', 'rails', 'console')
|
86
|
+
end
|
87
|
+
|
83
88
|
def deployment_dir
|
84
89
|
File.join(repository.dir, 'src', 'deployment')
|
85
90
|
end
|
data/lib/eh/version.rb
CHANGED
data/lib/eh-commands.rb
CHANGED
@@ -6,6 +6,8 @@ if Eh::Settings.current.repository
|
|
6
6
|
require 'eh/commands/deploy_config'
|
7
7
|
require 'eh/commands/deploy_ruby'
|
8
8
|
require 'eh/commands/deploy_mule'
|
9
|
+
require 'eh/commands/deploy_console'
|
10
|
+
require 'eh/commands/dump'
|
9
11
|
else
|
10
12
|
# remove unused settings for this version
|
11
13
|
Eh::Settings.current.data.delete('repository_root_dir')
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eventhub-command
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pascal Betz
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-03-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|