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 +4 -4
- data/CHANGELOG +6 -0
- data/lib/lux.rb +1 -0
- data/lib/lux/app.rb +10 -7
- data/lib/lux/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: 8e0947b5efcf9fabc2c11b06913adfbdaa204fb1
|
4
|
+
data.tar.gz: 342ea52ff0f2fcdd68e68407332c749a4d4b81f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae72f42c0be9640c0f2c4e2e77077846b475912146093c6522563dbd0621e1afcc89b7bedebf8da3038a41c28bffe5ca749cfdb3bc2fc7f70c970241baf5af8e
|
7
|
+
data.tar.gz: f3180c3f6f9b6423a96ed4919c0c76ee4c728419795ca83f04a6caead1e1d368e0f3f49893b642e269e9b6376148ce293ecbcbcb5c342fbb54e664b9568128ab
|
data/CHANGELOG
CHANGED
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
|
data/lib/lux/app.rb
CHANGED
@@ -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
|
-
|
183
|
-
|
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
|
-
|
190
|
+
Lux.info "Found: #{var}=#{uri.to_s}"
|
186
191
|
end
|
187
|
-
|
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
|
data/lib/lux/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2015-08-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|