desi 0.6.5 → 0.6.6

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: f68fa604db570820065691f9020d4d66b7c53aab
4
- data.tar.gz: 2411c64577dc4280f95b95ec10964ef637b8fb15
3
+ metadata.gz: 3d106f96e243343949f483a69674f9fda6e4fda1
4
+ data.tar.gz: d6ec91e110a0979ef87e99fb008201e1e1c731fa
5
5
  SHA512:
6
- metadata.gz: ca300972e1b07658e55e37c5dc48c24ca9d7b523e5cc5b857b3097e6de1f33f106cff314d005b3afc6cb7969fadb1f36b92af6e871b5ef746ebd26782c52ebd6
7
- data.tar.gz: 3941edfe968d9b5c130cecc451367f7194ea13791a1b9988a80eacd3fb40ad35d57c6986e2b93db6cdb6cc010066f866dd9bbbec090f55757db2a0cf27cabbc6
6
+ metadata.gz: 37230cf929affadec912d5292bc0c0cd2ae3e7085e024de5400ef2706bfba81ba8a6f4d5a09ca8cfc1242a574d2f0f39e65e1420f2db543910c7d074f80e064a
7
+ data.tar.gz: e0675d6816b39c64f612b937183e5f2a33b0b58646698826d749d225d5932883d1fd52c1c4a51e6b39be72854264d410f24e26fc53600032f03697b3fd05566c
@@ -27,7 +27,6 @@ module Desi
27
27
  @host = opts.fetch(:host) { Desi.configuration.server }
28
28
  @verbose = opts[:verbose]
29
29
  @foreground = opts[:foreground]
30
- @background = opts[:background]
31
30
  @local_install = LocalInstall.new
32
31
  @client = opts.fetch(:http_client_factory, Desi::HttpClient).new(@host)
33
32
 
@@ -242,18 +241,14 @@ module Desi
242
241
 
243
242
  def foreground_or_background_flag
244
243
  if legacy_release?
245
- !! @foreground ? '-f' : ''
244
+ foreground? ? '-f' : ''
246
245
  else
247
- !! @background ? '-d' : ''
246
+ foreground? ? '' : '-d'
248
247
  end
249
248
  end
250
249
 
251
250
  def foreground?
252
- if legacy_release?
253
- !! @foreground
254
- else
255
- ! @background
256
- end
251
+ !! @foreground
257
252
  end
258
253
 
259
254
  def tail_after_start?
@@ -12,12 +12,7 @@ module Desi
12
12
  end
13
13
 
14
14
  def self.start_options
15
- if Desi::LocalInstall.current_release_is_pre_one_zero?
16
- option :foreground, type: :boolean, desc: "Run ES in the foreground", default: false
17
- else
18
- option :background, type: :boolean, desc: "Run ES in the background", default: false
19
- end
20
-
15
+ option :foreground, type: :boolean, desc: "Run ES in the foreground", default: false
21
16
  option :tail, type: :boolean, desc: "Run tail after (re)starting", default: false
22
17
  end
23
18
 
@@ -1,3 +1,3 @@
1
1
  module Desi
2
- VERSION = "0.6.5"
2
+ VERSION = "0.6.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: desi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.5
4
+ version: 0.6.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dominique Rose-Rosette