eac_redmine_base0 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f9b88ec824e226607f3b0823ec77f1129e1df03cf7d09a93e1b29f9a6f720699
4
- data.tar.gz: 577c3a612c3a56fa5ebe0f18bf130ba05bcb291d3b39358df615ea575f5b495e
3
+ metadata.gz: 91906aa80bde0e5374befc79a7293eacd41689e22e753018497e10da46eaabd0
4
+ data.tar.gz: d73c3246ba32b768191a38dd8ebad8f815b17b8f6f8a6f36b4ca835579cdb79c
5
5
  SHA512:
6
- metadata.gz: f3c006e25010a444678328e122d01c5a5b166cb22cac6bae7212c2091767f0b640cefd62bd597f6cc6f19efa304a9c1fcd2ce2588655dc3a67edc92dc5dbe389
7
- data.tar.gz: be704cbe0560e2464441a397cc50e879376569364f1a8a794af045de52a92497e33818900a7dca4352271768704864bd7002c2ea7532801cf774560e5954194d
6
+ metadata.gz: 8e5313c3a2983672ce2956b77302b94be540eab5d48bb1ae01d2483057dd78923de9ca5bec9aec148580141d0f479d4e20afdba51ac781f29005fc5ba603d7a7
7
+ data.tar.gz: e5dfcb0f0ab8bd798c5749164c0940891d668d56f1e46b364852f211007ad5b60c71c51b68712776066ad4c9c69791dda9dd83c38f4674d05507bb9574da2abe
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/core_ext'
4
+
5
+ module EacRedmineBase0
6
+ module Tasks
7
+ class System
8
+ common_constructor :command_string
9
+
10
+ def banner
11
+ ::Rails.logger.info("Command string: #{command_string}")
12
+ ::Rails.logger.info("Command arguments: #{command_args}")
13
+ end
14
+
15
+ # @return [EacRubyUtils::Envs::Command]
16
+ def command
17
+ host_env.command(*command_args)
18
+ end
19
+
20
+ # @return [Array<String>]
21
+ def command_args
22
+ ::Shellwords.split(command_string)
23
+ end
24
+
25
+ # @return [EacRubyUtils::Envs::Local]
26
+ def host_env
27
+ ::EacRubyUtils::Envs.local
28
+ end
29
+
30
+ def perform
31
+ banner
32
+ command.system!
33
+ end
34
+ end
35
+ end
36
+ end
@@ -4,5 +4,5 @@ module EacRedmineBase0
4
4
  AUTHOR = 'Eduardo Henrique Bogoni'
5
5
  HOMEPAGE = 'https://github.com/esquilo-azul/eac_redmine_base0'
6
6
  SUMMARY = 'E.A.C. base for Redmine.'
7
- VERSION = '0.5.0'
7
+ VERSION = '0.6.0'
8
8
  end
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ namespace :eac_redmine_base0 do
4
+ desc 'Execute a system command'
5
+ task :system, [:command_string] => :environment do |_t, args|
6
+ ::EacRedmineBase0::Tasks::System.new(args.command_string).perform
7
+ end
8
+ end
metadata CHANGED
@@ -1,63 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eac_redmine_base0
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
- - 0.5.0
7
+ - 0.6.0
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-20 00:00:00.000000000 Z
11
+ date: 2023-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: avm-eac_redmine_base0
14
+ name: eac_ruby_utils
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.6'
20
- - - ">="
21
- - !ruby/object:Gem::Version
22
- version: 0.6.1
23
- type: :runtime
24
- prerelease: false
25
- version_requirements: !ruby/object:Gem::Requirement
26
- requirements:
27
- - - "~>"
28
- - !ruby/object:Gem::Version
29
- version: '0.6'
30
- - - ">="
31
- - !ruby/object:Gem::Version
32
- version: 0.6.1
33
- - !ruby/object:Gem::Dependency
34
- name: avm-eac_redmine_plugin_base0
35
- requirement: !ruby/object:Gem::Requirement
36
- requirements:
37
- - - "~>"
38
- - !ruby/object:Gem::Version
39
- version: '0.1'
19
+ version: '0.119'
40
20
  type: :runtime
41
21
  prerelease: false
42
22
  version_requirements: !ruby/object:Gem::Requirement
43
23
  requirements:
44
24
  - - "~>"
45
25
  - !ruby/object:Gem::Version
46
- version: '0.1'
26
+ version: '0.119'
47
27
  - !ruby/object:Gem::Dependency
48
28
  name: eac_ruby_gem_support
49
29
  requirement: !ruby/object:Gem::Requirement
50
30
  requirements:
51
31
  - - "~>"
52
32
  - !ruby/object:Gem::Version
53
- version: 0.5.1
33
+ version: 0.6.0
54
34
  type: :development
55
35
  prerelease: false
56
36
  version_requirements: !ruby/object:Gem::Requirement
57
37
  requirements:
58
38
  - - "~>"
59
39
  - !ruby/object:Gem::Version
60
- version: 0.5.1
40
+ version: 0.6.0
61
41
  description:
62
42
  email:
63
43
  executables: []
@@ -66,7 +46,9 @@ extra_rdoc_files: []
66
46
  files:
67
47
  - init.rb
68
48
  - lib/eac_redmine_base0.rb
49
+ - lib/eac_redmine_base0/tasks/system.rb
69
50
  - lib/eac_redmine_base0/version.rb
51
+ - lib/tasks/eac_redmine_base0.rake
70
52
  homepage: https://github.com/esquilo-azul/eac_redmine_base0
71
53
  licenses: []
72
54
  metadata: {}