lux 1.0.6 → 1.0.7

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
  SHA1:
3
- metadata.gz: 8be0be4990f3bbdb5b2d7117a756996543f38262
4
- data.tar.gz: 90e03ff7bcdd4cb679d728258d5cf27b8ec8d907
3
+ metadata.gz: 8e0947b5efcf9fabc2c11b06913adfbdaa204fb1
4
+ data.tar.gz: 342ea52ff0f2fcdd68e68407332c749a4d4b81f9
5
5
  SHA512:
6
- metadata.gz: 2b855936cae4a5b38ef7e94e9bbba9e9d99e2175c825132efca363a1c18627b063e7f6a9665a3f5a0515ea9158e0c4bdafd9bf8cf44fba2b4d01d5e7025646e2
7
- data.tar.gz: ae712eb0ab6690e7edb49ced1c7592f119aedba172c4863aaa0f86f6a42a639e4a5bbfc58fd579bbd5db8a69ace4198f57ac5237646666983b8f58b4dbeae328
6
+ metadata.gz: ae72f42c0be9640c0f2c4e2e77077846b475912146093c6522563dbd0621e1afcc89b7bedebf8da3038a41c28bffe5ca749cfdb3bc2fc7f70c970241baf5af8e
7
+ data.tar.gz: f3180c3f6f9b6423a96ed4919c0c76ee4c728419795ca83f04a6caead1e1d368e0f3f49893b642e269e9b6376148ce293ecbcbcb5c342fbb54e664b9568128ab
data/CHANGELOG CHANGED
@@ -1,3 +1,9 @@
1
+ lux (1.0.7)
2
+
3
+ * Fixed bug in start command
4
+
5
+ -- Nick Townsend <nick.townsend@mac.com> Mon, 24 Aug 2015 16:11:23 -0700
6
+
1
7
  lux (1.0.6)
2
8
 
3
9
  * Improve address check for Docker server
data/lib/lux.rb CHANGED
@@ -66,6 +66,7 @@ module Lux
66
66
  [user, <<-COMMAND.gsub(/^\s*/,'').gsub(/\n/,' ; ')]
67
67
  uid=$(echo $(stat -c %u:%g #{ENV['HOME']}) | cut -d: -f2)
68
68
  useradd -M -d #{ENV['HOME']} -u $uid -s #{ENV['SHELL']} #{user}
69
+ mkdir -p /etc/sudoers.d
69
70
  echo "#{user} ALL=(ALL:ALL) NOPASSWD: ALL" > /etc/sudoers.d/#{user}
70
71
  COMMAND
71
72
  end
@@ -61,7 +61,7 @@ class Lux::App < Thor
61
61
  image = Lux.findimage image
62
62
  raise "no image" if image.empty?
63
63
  puts "Starting #{image} container..."
64
- me, setup_cmd = user_setup_cmd()
64
+ me, setup_cmd = Lux.user_setup_cmd()
65
65
  args = ["-v #{ENV['HOME']}:#{ENV['HOME']}"]
66
66
  args << "--env-file=#{options.env}" if options.env
67
67
  args << "--name=#{options.name}" unless options.name == '<autogenerated>'
@@ -179,14 +179,17 @@ class Lux::App < Thor
179
179
  Lux.die "Not found: #{var}=#{uri.to_s}" unless name
180
180
  if uri.host != name
181
181
  uri.host = name
182
- msg = "Set"
183
- puts "export #{var}=#{uri.to_s}"
182
+ if STDOUT.isatty
183
+ Lux.info "Please export: #{var}=#{uri.to_s}"
184
+ Lux.info "(You can use '$(lux dockerip)' to do this)"
185
+ else
186
+ Lux.info "Exported: #{var}=#{uri.to_s}"
187
+ puts "export #{var}=#{uri.to_s}"
188
+ end
184
189
  else
185
- msg = "Found"
190
+ Lux.info "Found: #{var}=#{uri.to_s}"
186
191
  end
187
- msg << ": #{var}=#{uri.to_s}"
188
- msg << " (version #{info[:Version]})" if info
189
- Lux.info msg
192
+ Lux.info "Docker version #{info[:Version]}, OS: #{info[:Os]}, Arch: #{info[:Arch]}, Kernel: #{info[:KernelVersion]}" if info
190
193
  end
191
194
 
192
195
  end
@@ -1,3 +1,3 @@
1
1
  module Lux
2
- VERSION = "1.0.6"
2
+ VERSION = "1.0.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lux
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Townsend
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-22 00:00:00.000000000 Z
11
+ date: 2015-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor