picobox 0.3.4 → 0.3.41

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: ded8cb446fb955057bf0fccbe10101bc727513e4
4
- data.tar.gz: aa79bcdb1461b5591d9ed9cc7261096cca0ca213
3
+ metadata.gz: dfb7fa90a0141bb909aa2a67f83dc2fe829b5945
4
+ data.tar.gz: 1003f7fd5983b422cf8ab79184c0144e87814cc7
5
5
  SHA512:
6
- metadata.gz: 1d467ece912eaac8bec1dbde2db545d007eee5af20311221dedba388f907839c149a7e52fc170a32b07bfec59fbb6375aeb90d9cec87b24d30404ecaf405c7fe
7
- data.tar.gz: 5abd04e59a4a2e0c41d76ca327920d82880c9f232ada5d5633831a90a8e89341d3e871e308a563650e81c39b4a2bc5d84fd944169919cbb227f66b436bbe8bbd
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
 
@@ -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/dot_profile'
72
- require 'picobox/shell/dot_zshrc'
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'
@@ -1,6 +1,6 @@
1
1
  module Picobox
2
2
  # names for files / directories
3
- VERSION = '0.3.4'
3
+ VERSION = '0.3.41'
4
4
  HOMEPAGE = 'https://github.com/surzycki/picobox'
5
5
  PACKAGES_INFO_URL = 'https://api.github.com/repos/picobox/packages/releases/latest'
6
6
  CONFIG_DIR = '.picobox'
@@ -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::DotProfile.new(os)
7
+ when /\/bin\/bash:darwin/, /\/bin\/bash:linux/
8
+ Shell::Bash.new(os)
9
9
  when /\/bin\/zsh:darwin/, /\/bin\/zsh:linux/
10
- Shell::DotZshRC.new(os)
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
@@ -1,6 +1,6 @@
1
1
  module Picobox
2
2
  module Shell
3
- class DotZshRC < StartupScript
3
+ class Zsh < StartupScript
4
4
  def filename
5
5
  "#{os.home_dir}/.zshrc"
6
6
  end
@@ -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
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-15 00:00:00.000000000 Z
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/dot_bashrc.rb
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
@@ -1,9 +0,0 @@
1
- module Picobox
2
- module Shell
3
- class DotBashRC < StartupScript
4
- def filename
5
- "#{os.home_dir}/.bashrc"
6
- end
7
- end
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- module Picobox
2
- module Shell
3
- class DotProfile < StartupScript
4
- def filename
5
- "#{os.home_dir}/.profile"
6
- end
7
- end
8
- end
9
- end