fulmar 1.7.2 → 1.7.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: 18f28aa99b99b7f33abe640866ea2f91d0149070
4
- data.tar.gz: c520be42ded95eeae02cbf91d7eaed62fe058920
3
+ metadata.gz: fc973fd8341619eec3fa3f435e285409092c315f
4
+ data.tar.gz: ab81cf17a631500f7ef6d1c6e547207c85adb1f4
5
5
  SHA512:
6
- metadata.gz: 329ae11efdbfa802270006372b3c3a7fdf91a24476bf209b03f4ad9fafbc6dacee7c3861f87feb018a66635c34573278f58ef9e3ef0816dd764afa33dcab852c
7
- data.tar.gz: 73cc83da8fa5398d22d30c0e214a6208d233fc7fae1d34d206cb7b79a8cc6510fefaeb6fe2135afd7ec968bb97a93fcd2f4ba0ce1838abf2277acaf9e05005d6
6
+ metadata.gz: 811df6ec97e9fcae45b60c1d7b8e6a329107c72654b9d6e5b16b2da97ccf3a9de2aff5808ea114b1600163cccab60b3aac98fa2a9621ea62decfecf8ae541768
7
+ data.tar.gz: 71a373b007303ab176c711f42dffcea3457b16b1c80ffc9783721d986f425061b7f725fa53ff01bf1dc82153720ac54534f948b9e642aea74be27a8ca7b8ab83
@@ -33,7 +33,7 @@ module Fulmar
33
33
  end
34
34
 
35
35
  def test_project_name_exists
36
- if @config.configuration[:project][:name].blank?
36
+ if @config.project.name.blank?
37
37
  add_report 'Project is missing a name', :warning
38
38
  end
39
39
  end
@@ -22,7 +22,9 @@ module Fulmar
22
22
  end
23
23
 
24
24
  def composer(command, arguments = Fulmar::Infrastructure::Service::ComposerService::DEFAULT_PARAMS)
25
- (storage['composer'] ||= Fulmar::Infrastructure::Service::ComposerService.new(local_shell)).execute(command, arguments)
25
+ storage['composer'] ||= Fulmar::Infrastructure::Service::ComposerService.new(local_shell)
26
+ storage['composer'].shell.quiet = !configuration[:debug]
27
+ storage['composer'].execute(command, arguments)
26
28
  end
27
29
 
28
30
  def local_shell
@@ -5,14 +5,16 @@ module Fulmar
5
5
  class ComposerService
6
6
  DEFAULT_PARAMS = ['--no-dev']
7
7
 
8
+ attr_accessor :shell
9
+
8
10
  def initialize(shell, custom_path = '/usr/bin/env composer')
9
- @local_shell = shell
10
- @local_shell.quiet = true
11
+ @shell = shell
12
+ @shell.quiet = true
11
13
  @path = custom_path
12
14
  end
13
15
 
14
16
  def execute(command, arguments = DEFAULT_PARAMS)
15
- @local_shell.run "#{@path} #{command} #{arguments.join(' ')}"
17
+ @shell.run "#{@path} #{command} #{arguments.join(' ')}"
16
18
  end
17
19
  end
18
20
  end
@@ -57,7 +57,7 @@ module Fulmar
57
57
  end
58
58
 
59
59
  def tunnel
60
- @tunnel ||= Fulmar::Infrastructure::Service::TunnelService.new(@config[:hostname], @config[:maria][:port], @config[:maria][:hostname])
60
+ @tunnel ||= Fulmar::Infrastructure::Service::TunnelService.new(@config.ssh_user_and_host, @config[:maria][:port], @config[:maria][:hostname])
61
61
  end
62
62
 
63
63
  # shortcut for DatabaseService.client.query
@@ -91,7 +91,7 @@ module Fulmar
91
91
  def download_dump(filename = backup_filename)
92
92
  local_path = filename[0, 1] == '/' ? filename : @config[:local_path] + '/' + filename
93
93
  remote_path = dump
94
- copy = system("scp -q #{@config[:hostname]}:#{remote_path} #{local_path}")
94
+ copy = system("scp -q #{@config.ssh_user_and_host}:#{remote_path} #{local_path}")
95
95
  @shell.run "rm -f \"#{remote_path}\"" # delete temporary file
96
96
  if copy
97
97
  local_path
@@ -143,7 +143,7 @@ module Fulmar
143
143
 
144
144
  def initialize_shell
145
145
  path = local? ? @config[:local_path] : @config[:remote_path]
146
- @shell = Fulmar::Infrastructure::Service::ShellService.new(path, @config.ssh_user_and_host)
146
+ @shell = Fulmar::Infrastructure::Service::ShellService.new(path , @config.ssh_user_and_host)
147
147
  @shell.debug = true if @config[:debug]
148
148
  @shell.strict = true
149
149
  end
@@ -1,4 +1,4 @@
1
1
  # Provides a global version number
2
2
  module Fulmar
3
- VERSION = '1.7.2'
3
+ VERSION = '1.7.3'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fulmar
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.2
4
+ version: 1.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonas Siegl
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-06-19 00:00:00.000000000 Z
12
+ date: 2015-07-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler