geordi 1.5.1 → 1.5.2

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 0d9d613b214f8cc711edd164cf848d2832792237
4
+ data.tar.gz: e91eb49d7df4be3826ca53d86c44a53aefb5a48e
5
+ SHA512:
6
+ metadata.gz: 90d6d24374ac2bc356042f3587fe384f8a558725cebaae0d5c03c248cf1e9957bf8a442715abbbcdff76e4768ec2af66f47e59aeea5027b5595d4fd2c0841c69
7
+ data.tar.gz: d206eb552fde74c2cb2b66a01edcc2b14b8ca9a3ed4e878f05631e57222e29f7b505b398851f0ff56702a485d89ffd2660ad4c998791b243e07309b774df9b8a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- geordi (1.5.1)
4
+ geordi (1.5.2)
5
5
  thor (>= 0.18.0)
6
6
 
7
7
  GEM
@@ -23,7 +23,7 @@ Feature: The dump command
23
23
  When I run `geordi dump staging`
24
24
  Then the output should contain "# Dumping the database of staging"
25
25
  And the output should contain "> Connecting to www.example.com"
26
- And the output should contain "Util.system! ssh user@www.example.com -t cd /var/www/example.com/current && bash --login -c 'dumple staging --for_download'"
26
+ And the output should contain "Util.system! ssh, user@www.example.com, -t, cd /var/www/example.com/current && bash --login -c 'dumple staging --for_download'"
27
27
  And the output should contain "> Downloading remote dump to tmp/staging.dump"
28
28
  # Omitting the absolute path in this regex (.*)
29
29
  And the output should match %r<Util.system! scp user@www.example.com:~/dumps/dump_for_download.dump .*/tmp/aruba/tmp/staging.dump>
@@ -15,7 +15,7 @@ Feature: The shell command
15
15
  """
16
16
 
17
17
  When I run `geordi shell geordi`
18
- Then the output should contain "Util.system! ssh deploy@first.example.com -t cd /var/www/example.com/current && bash --login"
18
+ Then the output should contain "Util.system! ssh, deploy@first.example.com, -t, cd /var/www/example.com/current && bash --login"
19
19
 
20
20
 
21
21
  Scenario: It understands Capistrano 3 syntax
@@ -27,4 +27,4 @@ Feature: The shell command
27
27
  """
28
28
 
29
29
  When I run `geordi shell geordi`
30
- Then the output should contain "Util.system! ssh deploy@first.example.com -t cd /var/www/example.com/current && bash --login"
30
+ Then the output should contain "Util.system! ssh, deploy@first.example.com, -t, cd /var/www/example.com/current && bash --login"
@@ -18,7 +18,7 @@ LONGDESC
18
18
  option :opt, :type => :boolean, :aliases => '-o', :banner => 'VALUE_NAME',
19
19
  :desc => 'If set, VALUE_NAME will be used for something'
20
20
 
21
- def setup
21
+ def example
22
22
  # Invoke other commands like this:
23
23
  invoke_cmd 'other_command', 'argument', :an => 'option'
24
24
 
@@ -27,3 +27,7 @@ def setup
27
27
  # For formatted output, see geordi/interaction.rb
28
28
  success 'Done.'
29
29
  end
30
+
31
+ # Command mappings, usually not needed
32
+ map 'beispiel' => 'example'
33
+ map '-E' => 'example'
@@ -14,10 +14,10 @@ def server(port = nil)
14
14
  note "URL: http://#{ File.basename(Dir.pwd) }.vcap.me:#{port}"
15
15
  puts
16
16
 
17
- command = [Util.server_command]
18
- command << '-b 0.0.0.0' if options.public
19
- command << "-p #{ port }"
20
- Util.system! *command
17
+ command = Util.server_command
18
+ command << ' -b 0.0.0.0' if options.public
19
+ command << ' -p ' << port
20
+ Util.system! command
21
21
  end
22
22
 
23
23
  map 'devserver' => 'server'
data/lib/geordi/util.rb CHANGED
@@ -38,14 +38,14 @@ module Geordi
38
38
  # @option fail_message: The text to print on command failure
39
39
  def system!(*commands)
40
40
  options = commands.last.is_a?(Hash) ? commands.pop : {}
41
- note_cmd commands.join(' ') if options[:show_cmd]
41
+ note_cmd commands.inspect if options[:show_cmd]
42
42
 
43
43
  if options[:confirm]
44
44
  prompt('Run this now?', 'n', /y|yes/) or fail('Cancelled.')
45
45
  end
46
46
 
47
47
  if ENV['GEORDI_TESTING']
48
- puts "Util.system! #{ commands.join(' ') }"
48
+ puts "Util.system! #{ commands.join ', ' }"
49
49
  else
50
50
  # Remove Geordi's Bundler environment when running commands.
51
51
  success = defined?(Bundler) ? Bundler.clean_system(*commands) : system(*commands)
@@ -1,3 +1,3 @@
1
1
  module Geordi
2
- VERSION = '1.5.1'
2
+ VERSION = '1.5.2'
3
3
  end
metadata CHANGED
@@ -1,30 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geordi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1
5
- prerelease:
4
+ version: 1.5.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Henning Koch
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2016-09-14 00:00:00.000000000 Z
11
+ date: 2016-09-23 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: thor
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: 0.18.0
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - ">="
28
25
  - !ruby/object:Gem::Version
29
26
  version: 0.18.0
30
27
  description: Collection of command line tools we use in our daily work with Ruby,
@@ -53,8 +50,8 @@ executables:
53
50
  extensions: []
54
51
  extra_rdoc_files: []
55
52
  files:
56
- - .gitignore
57
- - .ruby-version
53
+ - ".gitignore"
54
+ - ".ruby-version"
58
55
  - Gemfile
59
56
  - Gemfile.lock
60
57
  - LICENSE
@@ -132,29 +129,26 @@ files:
132
129
  homepage: http://makandra.com
133
130
  licenses:
134
131
  - MIT
135
- post_install_message: ! '* Binary `geordi` installed
136
-
137
- '
132
+ metadata: {}
133
+ post_install_message: "* Binary `geordi` installed\n"
138
134
  rdoc_options: []
139
135
  require_paths:
140
136
  - lib
141
137
  required_ruby_version: !ruby/object:Gem::Requirement
142
- none: false
143
138
  requirements:
144
- - - ! '>='
139
+ - - ">="
145
140
  - !ruby/object:Gem::Version
146
141
  version: '0'
147
142
  required_rubygems_version: !ruby/object:Gem::Requirement
148
- none: false
149
143
  requirements:
150
- - - ! '>='
144
+ - - ">="
151
145
  - !ruby/object:Gem::Version
152
146
  version: '0'
153
147
  requirements: []
154
148
  rubyforge_project: geordi
155
- rubygems_version: 1.8.23.2
149
+ rubygems_version: 2.5.1
156
150
  signing_key:
157
- specification_version: 3
151
+ specification_version: 4
158
152
  summary: Collection of command line tools we use in our daily work with Ruby, Rails
159
153
  and Linux at makandra.
160
154
  test_files: []