eventhub-command 0.3.3 → 0.3.4
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/lib/eh/commands/package_rails.rb +23 -0
- data/lib/eh/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 236d7f8d467fdf7b76dde7fd5707a1ac5653ad16
|
4
|
+
data.tar.gz: 1dfa5768caa12318cd8f8aeaa63e5679bc43144b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9aeea1a4e819ea20af99aa7b3d8ca4b17933f57711323eba8937e058ddbe095d5924fe4b1f65c87e84299fa0517754ef2b64287ae452bc5c358ef1945ad12c9f
|
7
|
+
data.tar.gz: fdb043db919e3e60f4776b10cb072ce7cf09b6b9c028e2e0ec8f9d7e077512cb2591fc97a639a22f32eed019fce7eb526cbb20bf494d5d6f90136f46fdcbe5ff
|
@@ -0,0 +1,23 @@
|
|
1
|
+
desc 'Packages processors to zip files'
|
2
|
+
command :package_rails do |c|
|
3
|
+
c.flag([:d, :destination], :desc => "Destination directory to place created zip files.", :default_value => Eh::Settings.current.rails_release_dir)
|
4
|
+
c.flag([:s, :source], :desc => "Source directory to read rails apps from.", :default_value => Eh::Settings.current.rails_src_dir)
|
5
|
+
|
6
|
+
c.action do |global_options, options, args|
|
7
|
+
files_and_dirs = %w{Capfile Gemfile Gemfile.lock README.rdoc Rakefile app bin db lib public spec vendor}
|
8
|
+
source = options[:source]
|
9
|
+
|
10
|
+
dirs = Dir.glob("#{source}")
|
11
|
+
dirs.each do |dir|
|
12
|
+
app = File.basename(dir)
|
13
|
+
destination = File.join(options[:d], "#{app}.zip")
|
14
|
+
included = files_and_dirs.map do |s|
|
15
|
+
File.join(app, s)
|
16
|
+
end.join(' ')
|
17
|
+
cmd = "cd #{File.join(dir, '..')} && zip -r #{destination} #{included}"
|
18
|
+
ret = system cmd
|
19
|
+
puts "Packaged #{app}: #{ret}"
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
data/lib/eh/version.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.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pascal Betz
|
@@ -160,6 +160,7 @@ files:
|
|
160
160
|
- lib/eh/commands/dump.rb
|
161
161
|
- lib/eh/commands/generate_processor.rb
|
162
162
|
- lib/eh/commands/list_stages.rb
|
163
|
+
- lib/eh/commands/package_rails.rb
|
163
164
|
- lib/eh/commands/package_ruby.rb
|
164
165
|
- lib/eh/commands/repository.rb
|
165
166
|
- lib/eh/settings.rb
|