eventhub-command 0.0.2 → 0.0.3

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: 571eb57bbf2a247a20e81455cd6dd5f30e12f10d
4
- data.tar.gz: 68f6e01a6a4aba26e21319c58716a4f20e237c38
3
+ metadata.gz: ef927eff84f8a2b236e22649ceb729ec8229fde9
4
+ data.tar.gz: d07f7fcbf3e6beb87e26dc67646aa0ec1ebf8f5f
5
5
  SHA512:
6
- metadata.gz: 71173d4682b8780672d5257a947818973e9ad11a87bca6344571dc6953e15d79b3a63b5712f034a9b1f593d48531096afbf88e6fe2f50483ecbd38b18e59b239
7
- data.tar.gz: faceacb4914b821bdbe40528c6668fd62d48b248ad254ceacc9057107043eb0dec99298c77720be61dc071047791e58f02341b5df94e04bfc09c4641d41fa04d
6
+ metadata.gz: a9ed66dffea09e2caef2563ae4383b93ed6a6f37e915f1eab363ed37e83bc76502d497235b9460fca1c6f7322273495437c9b98c7e104cbdb3d5eebc0628f949
7
+ data.tar.gz: a4c97edbe4f73c7c88169c688c5a62f4f4d001202429d0743309d893c7708f422d9b40dea4fdf371bbfb6f2044a82552bd99a6e9b491cac4f0e3a53b00bdb4e3
@@ -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.package_tmp_dir)
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 release_dir
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
@@ -1,3 +1,3 @@
1
1
  module Eh
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
data/lib/eh-commands.rb CHANGED
@@ -1,3 +1,2 @@
1
1
  # All commands are required here
2
- require 'eh/commands/release'
3
2
  require 'eh/commands/package'
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.2
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
@@ -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