fulmar 1.7.2 → 1.7.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fulmar/domain/service/config_test_service.rb +1 -1
- data/lib/fulmar/domain/service/helper/common_helper.rb +3 -1
- data/lib/fulmar/infrastructure/service/composer_service.rb +5 -3
- data/lib/fulmar/infrastructure/service/database/database_service.rb +3 -3
- data/lib/fulmar/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc973fd8341619eec3fa3f435e285409092c315f
|
4
|
+
data.tar.gz: ab81cf17a631500f7ef6d1c6e547207c85adb1f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 811df6ec97e9fcae45b60c1d7b8e6a329107c72654b9d6e5b16b2da97ccf3a9de2aff5808ea114b1600163cccab60b3aac98fa2a9621ea62decfecf8ae541768
|
7
|
+
data.tar.gz: 71a373b007303ab176c711f42dffcea3457b16b1c80ffc9783721d986f425061b7f725fa53ff01bf1dc82153720ac54534f948b9e642aea74be27a8ca7b8ab83
|
@@ -22,7 +22,9 @@ module Fulmar
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def composer(command, arguments = Fulmar::Infrastructure::Service::ComposerService::DEFAULT_PARAMS)
|
25
|
-
|
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
|
-
@
|
10
|
-
@
|
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
|
-
@
|
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
|
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
|
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
|
data/lib/fulmar/version.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2015-07-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|