eventhub-command 0.3.13 → 0.3.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +17 -17
- data/Gemfile +2 -2
- data/Rakefile +44 -44
- data/eh.gemspec +2 -0
- data/eh.rdoc +4 -4
- data/lib/deployer/base_deployer.rb +149 -149
- data/lib/deployer/executor.rb +19 -3
- data/lib/deployer/mule_deployer.rb +85 -85
- data/lib/deployer/net_ssh_extension.rb +45 -45
- data/lib/deployer/stage.rb +36 -36
- data/lib/eh-commands.rb +2 -0
- data/lib/eh.rb +11 -11
- data/lib/eh/commands/deploy_mule.rb +23 -23
- data/lib/eh/commands/deploy_ruby.rb +25 -25
- data/lib/eh/commands/generate_processor.rb +90 -90
- data/lib/eh/commands/package_ruby.rb +113 -113
- data/lib/eh/commands/proxy.rb +50 -0
- data/lib/eh/commands/repository.rb +81 -81
- data/lib/eh/proxy/proxy.rb +98 -0
- data/lib/eh/proxy/settings/git.rb +37 -0
- data/lib/eh/proxy/settings/shell.rb +46 -0
- data/lib/eh/proxy/settings/svn.rb +61 -0
- data/lib/eh/settings.rb +28 -0
- data/lib/eh/version.rb +1 -1
- data/test/default_test.rb +14 -14
- data/test/test_helper.rb +9 -9
- data/todo.txt +8 -8
- metadata +37 -3
data/lib/eh/settings.rb
CHANGED
@@ -28,6 +28,25 @@ class Eh::Settings
|
|
28
28
|
end
|
29
29
|
end
|
30
30
|
|
31
|
+
class Proxy
|
32
|
+
def initialize(json)
|
33
|
+
@name = json['name']
|
34
|
+
@default = json['default']
|
35
|
+
@url = json['url']
|
36
|
+
end
|
37
|
+
attr_reader :name, :url, :default
|
38
|
+
|
39
|
+
def default?
|
40
|
+
!!@default
|
41
|
+
end
|
42
|
+
|
43
|
+
def label
|
44
|
+
label = "#{name} -> #{url}"
|
45
|
+
label << " (default)" if default?
|
46
|
+
label
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
31
50
|
def default_stage
|
32
51
|
@data['default_stage'] || 'development'
|
33
52
|
end
|
@@ -35,6 +54,7 @@ class Eh::Settings
|
|
35
54
|
def initialize(file)
|
36
55
|
@file = file
|
37
56
|
@data = JSON.parse(File.read(file))
|
57
|
+
@data['proxies'] ||= []
|
38
58
|
end
|
39
59
|
|
40
60
|
def self.load(file)
|
@@ -68,6 +88,14 @@ class Eh::Settings
|
|
68
88
|
repos || []
|
69
89
|
end
|
70
90
|
|
91
|
+
|
92
|
+
def proxies
|
93
|
+
proxies = data['proxies'].map do |json|
|
94
|
+
Eh::Settings::Proxy.new(json)
|
95
|
+
end if data['proxies']
|
96
|
+
proxies || []
|
97
|
+
end
|
98
|
+
|
71
99
|
def releases_dir(*extra_paths)
|
72
100
|
File.join(repository.dir, 'releases', *extra_paths)
|
73
101
|
end
|
data/lib/eh/version.rb
CHANGED
data/test/default_test.rb
CHANGED
@@ -1,14 +1,14 @@
|
|
1
|
-
require 'test_helper'
|
2
|
-
|
3
|
-
class DefaultTest < Test::Unit::TestCase
|
4
|
-
|
5
|
-
def setup
|
6
|
-
end
|
7
|
-
|
8
|
-
def teardown
|
9
|
-
end
|
10
|
-
|
11
|
-
def test_the_truth
|
12
|
-
assert true
|
13
|
-
end
|
14
|
-
end
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class DefaultTest < Test::Unit::TestCase
|
4
|
+
|
5
|
+
def setup
|
6
|
+
end
|
7
|
+
|
8
|
+
def teardown
|
9
|
+
end
|
10
|
+
|
11
|
+
def test_the_truth
|
12
|
+
assert true
|
13
|
+
end
|
14
|
+
end
|
data/test/test_helper.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
require 'test/unit'
|
2
|
-
|
3
|
-
# Add test libraries you want to use here, e.g. mocha
|
4
|
-
|
5
|
-
class Test::Unit::TestCase
|
6
|
-
|
7
|
-
# Add global extensions to the test case class here
|
8
|
-
|
9
|
-
end
|
1
|
+
require 'test/unit'
|
2
|
+
|
3
|
+
# Add test libraries you want to use here, e.g. mocha
|
4
|
+
|
5
|
+
class Test::Unit::TestCase
|
6
|
+
|
7
|
+
# Add global extensions to the test case class here
|
8
|
+
|
9
|
+
end
|
data/todo.txt
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
-- -------------------------------------
|
2
|
-
-- to do
|
3
|
-
-- -------------------------------------
|
4
|
-
|
5
|
-
- eh relase -r or --repository plate_store or http path -u user -p password
|
6
|
-
- folder filter, default and customize
|
7
|
-
- extension filter, default and custmize
|
8
|
-
- it could take config settings from a local .ehconfig file
|
1
|
+
-- -------------------------------------
|
2
|
+
-- to do
|
3
|
+
-- -------------------------------------
|
4
|
+
|
5
|
+
- eh relase -r or --repository plate_store or http path -u user -p password
|
6
|
+
- folder filter, default and customize
|
7
|
+
- extension filter, default and custmize
|
8
|
+
- it could take config settings from a local .ehconfig file
|
9
9
|
- would be nice to have a release all feature
|
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.3.
|
4
|
+
version: 0.3.14
|
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-11-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -123,6 +123,34 @@ dependencies:
|
|
123
123
|
- - "~>"
|
124
124
|
- !ruby/object:Gem::Version
|
125
125
|
version: '0.7'
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: highline
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
requirements:
|
130
|
+
- - ">="
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: '0'
|
133
|
+
type: :runtime
|
134
|
+
prerelease: false
|
135
|
+
version_requirements: !ruby/object:Gem::Requirement
|
136
|
+
requirements:
|
137
|
+
- - ">="
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
version: '0'
|
140
|
+
- !ruby/object:Gem::Dependency
|
141
|
+
name: parseconfig
|
142
|
+
requirement: !ruby/object:Gem::Requirement
|
143
|
+
requirements:
|
144
|
+
- - ">="
|
145
|
+
- !ruby/object:Gem::Version
|
146
|
+
version: '0'
|
147
|
+
type: :runtime
|
148
|
+
prerelease: false
|
149
|
+
version_requirements: !ruby/object:Gem::Requirement
|
150
|
+
requirements:
|
151
|
+
- - ">="
|
152
|
+
- !ruby/object:Gem::Version
|
153
|
+
version: '0'
|
126
154
|
description: Event Hub Command Line Tool which supports you with various Event Hub
|
127
155
|
related administrative development features.
|
128
156
|
email:
|
@@ -162,8 +190,13 @@ files:
|
|
162
190
|
- lib/eh/commands/generate_processor.rb
|
163
191
|
- lib/eh/commands/package_rails.rb
|
164
192
|
- lib/eh/commands/package_ruby.rb
|
193
|
+
- lib/eh/commands/proxy.rb
|
165
194
|
- lib/eh/commands/repository.rb
|
166
195
|
- lib/eh/commands/stage.rb
|
196
|
+
- lib/eh/proxy/proxy.rb
|
197
|
+
- lib/eh/proxy/settings/git.rb
|
198
|
+
- lib/eh/proxy/settings/shell.rb
|
199
|
+
- lib/eh/proxy/settings/svn.rb
|
167
200
|
- lib/eh/settings.rb
|
168
201
|
- lib/eh/version.rb
|
169
202
|
- test/default_test.rb
|
@@ -195,8 +228,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
195
228
|
version: '0'
|
196
229
|
requirements: []
|
197
230
|
rubyforge_project:
|
198
|
-
rubygems_version: 2.
|
231
|
+
rubygems_version: 2.4.5
|
199
232
|
signing_key:
|
200
233
|
specification_version: 4
|
201
234
|
summary: Event Hub Command Line Tool
|
202
235
|
test_files: []
|
236
|
+
has_rdoc: true
|