picobox 0.3.4 → 0.3.41
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 +4 -4
- data/README.md +1 -0
- data/lib/picobox.rb +2 -3
- data/lib/picobox/constants.rb +1 -1
- data/lib/picobox/shell/bash.rb +18 -0
- data/lib/picobox/shell/startup_script.rb +3 -5
- data/lib/picobox/shell/{dot_zshrc.rb → zsh.rb} +1 -1
- data/picobox.gemspec +1 -1
- metadata +18 -5
- data/lib/picobox/shell/dot_bashrc.rb +0 -9
- data/lib/picobox/shell/dot_profile.rb +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dfb7fa90a0141bb909aa2a67f83dc2fe829b5945
|
4
|
+
data.tar.gz: 1003f7fd5983b422cf8ab79184c0144e87814cc7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb8e1c474de7430e417059b52102b86d1b9cede8d9ec0703015e45a842eff4d34c76b6a2383d3994285ef0e8e50bdd2ca65058c15460df66561bc63bdb09deef
|
7
|
+
data.tar.gz: 02d7a28c43d3fa2cab4eac5aa5d892f34a02a8e5f3e28722b16b2f894438ea1a4c9c8f48ce889d212734357576bebdb3687f202f280682649ce1e69ec5b3f258
|
data/README.md
CHANGED
@@ -157,6 +157,7 @@ $ bundle exec byebug -R localhost:8989
|
|
157
157
|
- [ ] Uninstall should stop and remove all instances that are running
|
158
158
|
- [ ] Some services should install thier own volumes
|
159
159
|
- [ ] Remove TTY::File, TTY::Prompt dependency (needs native extensions)
|
160
|
+
- [ ] Rake spec / test etc should point to test instance
|
160
161
|
|
161
162
|
**http://blog.cloud66.com/using-ssh-private-keys-securely-in-docker-build/
|
162
163
|
|
data/lib/picobox.rb
CHANGED
@@ -68,9 +68,8 @@ require 'picobox/os/current_os'
|
|
68
68
|
require 'picobox/os/distro'
|
69
69
|
|
70
70
|
require 'picobox/shell/startup_script'
|
71
|
-
require 'picobox/shell/
|
72
|
-
require 'picobox/shell/
|
73
|
-
require 'picobox/shell/dot_bashrc'
|
71
|
+
require 'picobox/shell/zsh'
|
72
|
+
require 'picobox/shell/bash'
|
74
73
|
require 'picobox/shell/ini_file'
|
75
74
|
|
76
75
|
require 'picobox/constants'
|
data/lib/picobox/constants.rb
CHANGED
@@ -0,0 +1,18 @@
|
|
1
|
+
module Picobox
|
2
|
+
module Shell
|
3
|
+
class Bash < StartupScript
|
4
|
+
def filename
|
5
|
+
[
|
6
|
+
'.bashrc',
|
7
|
+
'.bash_profile',
|
8
|
+
'.bash_login',
|
9
|
+
'.profile'
|
10
|
+
].map do |script|
|
11
|
+
Pathname.new("#{os.home_dir}/#{script}")
|
12
|
+
end.select do |file|
|
13
|
+
file.exist?
|
14
|
+
end.first.to_path
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -4,12 +4,10 @@ module Picobox
|
|
4
4
|
class << self
|
5
5
|
def get(os)
|
6
6
|
case "#{os.user_shell}:#{os.to_s}"
|
7
|
-
when /\/bin\/bash:darwin/
|
8
|
-
Shell::
|
7
|
+
when /\/bin\/bash:darwin/, /\/bin\/bash:linux/
|
8
|
+
Shell::Bash.new(os)
|
9
9
|
when /\/bin\/zsh:darwin/, /\/bin\/zsh:linux/
|
10
|
-
Shell::
|
11
|
-
when /\/bin\/bash:linux/
|
12
|
-
Shell::DotBashRC.new(os)
|
10
|
+
Shell::Zsh.new(os)
|
13
11
|
else
|
14
12
|
raise Errors::ShellNotSupported, "#{os.user_shell}:#{os.to_s}"
|
15
13
|
end
|
data/picobox.gemspec
CHANGED
@@ -36,7 +36,7 @@ Gem::Specification.new do |spec|
|
|
36
36
|
spec.add_development_dependency 'guard'
|
37
37
|
spec.add_development_dependency 'guard-rspec'
|
38
38
|
spec.add_development_dependency 'webmock'
|
39
|
-
|
39
|
+
spec.add_development_dependency 'climate_control'
|
40
40
|
|
41
41
|
|
42
42
|
spec.add_dependency 'thor', '0.20.0'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: picobox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.41
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan Surzycki
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-10-
|
11
|
+
date: 2017-10-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: byebug
|
@@ -164,6 +164,20 @@ dependencies:
|
|
164
164
|
- - ">="
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: '0'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: climate_control
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ">="
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
167
181
|
- !ruby/object:Gem::Dependency
|
168
182
|
name: thor
|
169
183
|
requirement: !ruby/object:Gem::Requirement
|
@@ -370,11 +384,10 @@ files:
|
|
370
384
|
- lib/picobox/service.rb
|
371
385
|
- lib/picobox/services/installer.rb
|
372
386
|
- lib/picobox/services/manifest.rb
|
373
|
-
- lib/picobox/shell/
|
374
|
-
- lib/picobox/shell/dot_profile.rb
|
375
|
-
- lib/picobox/shell/dot_zshrc.rb
|
387
|
+
- lib/picobox/shell/bash.rb
|
376
388
|
- lib/picobox/shell/ini_file.rb
|
377
389
|
- lib/picobox/shell/startup_script.rb
|
390
|
+
- lib/picobox/shell/zsh.rb
|
378
391
|
- lib/picobox/system.rb
|
379
392
|
- lib/picobox/utils/domain_event_publisher.rb
|
380
393
|
- lib/picobox/utils/output.rb
|