eventhub-command 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/eh/commands/package.rb +1 -1
- data/lib/eh/settings.rb +1 -4
- data/lib/eh/version.rb +1 -1
- data/lib/eh-commands.rb +0 -1
- metadata +1 -2
- data/lib/eh/commands/release.rb +0 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef927eff84f8a2b236e22649ceb729ec8229fde9
|
4
|
+
data.tar.gz: d07f7fcbf3e6beb87e26dc67646aa0ec1ebf8f5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9ed66dffea09e2caef2563ae4383b93ed6a6f37e915f1eab363ed37e83bc76502d497235b9460fca1c6f7322273495437c9b98c7e104cbdb3d5eebc0628f949
|
7
|
+
data.tar.gz: a4c97edbe4f73c7c88169c688c5a62f4f4d001202429d0743309d893c7708f422d9b40dea4fdf371bbfb6f2044a82552bd99a6e9b491cac4f0e3a53b00bdb4e3
|
data/lib/eh/commands/package.rb
CHANGED
@@ -2,7 +2,7 @@ desc 'Packages processors to zip files'
|
|
2
2
|
command :package do |c|
|
3
3
|
c.flag([:x, :exclude], :desc => "Exclude processors by name.", :type => Array, :long_desc => "You can specify multiple processors by providing a comma-separated list.")
|
4
4
|
c.flag([:p, :processors], :desc => "Specify what processors to package", :type => Array, :long_desc => "You can specify multiple processors by providing a comma-separated list.")
|
5
|
-
c.flag([:d, :destination], :desc => "Destination directory to place created zip files.", :default_value => Eh::Settings.current.
|
5
|
+
c.flag([:d, :destination], :desc => "Destination directory to place created zip files.", :default_value => Eh::Settings.current.ruby_release_dir)
|
6
6
|
c.flag([:s, :source], :desc => "Source directory to read processors from.", :default_value => Eh::Settings.current.processes_src_dir)
|
7
7
|
|
8
8
|
c.action do |global_options, options, args|
|
data/lib/eh/settings.rb
CHANGED
@@ -23,7 +23,7 @@ class Eh::Settings
|
|
23
23
|
File.expand_path(data['repository_root_dir'])
|
24
24
|
end
|
25
25
|
|
26
|
-
def
|
26
|
+
def ruby_release_dir
|
27
27
|
File.join(repository_root_dir, 'releases', 'ruby')
|
28
28
|
end
|
29
29
|
|
@@ -31,8 +31,5 @@ class Eh::Settings
|
|
31
31
|
File.join(repository_root_dir, 'src', 'process')
|
32
32
|
end
|
33
33
|
|
34
|
-
def package_tmp_dir
|
35
|
-
'./tmp'
|
36
|
-
end
|
37
34
|
|
38
35
|
end
|
data/lib/eh/version.rb
CHANGED
data/lib/eh-commands.rb
CHANGED
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.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pascal Betz
|
@@ -92,7 +92,6 @@ files:
|
|
92
92
|
- lib/eh-commands.rb
|
93
93
|
- lib/eh.rb
|
94
94
|
- lib/eh/commands/package.rb
|
95
|
-
- lib/eh/commands/release.rb
|
96
95
|
- lib/eh/settings.rb
|
97
96
|
- lib/eh/version.rb
|
98
97
|
- test/default_test.rb
|
data/lib/eh/commands/release.rb
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
desc 'Packages processors to zip files'
|
2
|
-
command :release do |c|
|
3
|
-
c.flag([:d, :destination], :desc => "Destination directory to place created zip files.", :default_value => Eh::Settings.current.release_dir)
|
4
|
-
c.flag([:s, :source], :desc => "Source directory to read processors from.", :default_value => Eh::Settings.current.package_tmp_dir)
|
5
|
-
|
6
|
-
c.action do |global_options, options, args|
|
7
|
-
source_dir = options['s']
|
8
|
-
destination_dir = options['d']
|
9
|
-
pattern = "#{source_dir}/*.zip"
|
10
|
-
cmd = "cp #{pattern} #{destination_dir}"
|
11
|
-
puts "Will copy #{Dir[pattern].size} files from #{source_dir} to #{destination_dir}"
|
12
|
-
puts "Command: #{cmd}" if global_options['v']
|
13
|
-
system cmd
|
14
|
-
puts "Done."
|
15
|
-
end
|
16
|
-
end
|