arkrb 0.2.0 → 0.3.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: 30aec9fd508dde5c37a44eede01670a91f57d220624c53e5c8d1a5f57939c377
4
- data.tar.gz: e3a7b74dfd865cb2528bb5f827dba21bb6f59507aedb87f30029b82b662d17ce
3
+ metadata.gz: de8adff396a86832903fd6e1c0da7cbad03249649265438743ce3daec927433a
4
+ data.tar.gz: d56bc1ad811b4bdddd5920b150602c506fa71337f25e261df5d4181e3231c680
5
5
  SHA512:
6
- metadata.gz: f7484aa720ceeaf083a9580d59b7e07a92392ec2b828da29184c90d2d69fbd6676c60d26f4bdbd71075cbab09be958fe24af2ffbc8640654fe8386654ef282b1
7
- data.tar.gz: 99073581202e48e51abe25e6905f3cae0f0e23d34261790477be2310fe93b4fd7935decbf2f5b58349a1cc396d46fca11c6bd831b8cf285516f11d74ddd6a676
6
+ metadata.gz: e9ebb70dc621d1bf6bd336351310e722cf09dcdde7fc301138136e2a1d18596b50a5ca595f8c58d5ca881244c5632238d5d5c327c77d517fa56a2aa87df06e32
7
+ data.tar.gz: 4741db523f328980af2e6f30c67344bb33454395051c3900717c00c5b0d6fcfa4d40af9344053c473942575a782b3c6661c87c1876bed70fd23a67498c159cf7
@@ -21,6 +21,7 @@ module Arkrb
21
21
  # @return [Integer, String]
22
22
  def self.execute(command, command_opts = '', instance = 'main', sanitize = false)
23
23
  exec_this = format('%s %s %s @%s', executable, command.to_s.tr('_', ''), command_opts, instance)
24
+ pp exec_this
24
25
  stdin, stdout, stderr = Open3.popen3(exec_this)
25
26
  output = stdout.read.chomp
26
27
  errors = stderr.read.chomp
@@ -84,7 +84,9 @@ module Arkrb
84
84
 
85
85
  # @return [True, Exception]
86
86
  def update(output)
87
- if output =~ /#{'already up to date '}/im || output =~ /#{'updated'}/im
87
+ if output =~ /#{'already up to date'}/im || output =~ /#{'updated'}/im
88
+ # output
89
+ true
88
90
  else
89
91
  raise_unknown_error(__method__.to_sym, output)
90
92
  end
@@ -40,8 +40,12 @@ module Arkrb
40
40
  end
41
41
 
42
42
  # @return [True, Exception]
43
- def update!
44
- arkmanager_exec :update
43
+ def update!(update_mods = false)
44
+ if update_mods
45
+ arkmanager_exec :update, '--update-mods'
46
+ else
47
+ arkmanager_exec :update
48
+ end
45
49
  end
46
50
 
47
51
  # @return [True, Exception]
@@ -137,4 +141,4 @@ module Arkrb
137
141
  end
138
142
 
139
143
  end
140
- end
144
+ end
@@ -1,3 +1,3 @@
1
1
  module Arkrb
2
- VERSION = '0.2.0'
2
+ VERSION = '0.3.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arkrb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Bruno