picobox 0.2.1 → 0.2.2

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: 999db531c64444e56a03d3606c910376fcc50e6b
4
- data.tar.gz: e4a35cc64748db3e635a94913a53c6dfea07a719
3
+ metadata.gz: 29136ef31ec1beae33859bce9b509f3a5e58f755
4
+ data.tar.gz: f82e4ca951b28947d3d4fa6476e8e9fa1d3171b7
5
5
  SHA512:
6
- metadata.gz: e09fef0d98871a2effc624e3b4e92833f0995e6457144937649c21db9433a5f5928391ce302560a58d674ab969b85b3baeca3487600a9248644e1b21d52bcf96
7
- data.tar.gz: 7a8c9c4ca92fbdeef529eead561ed9e30f14c05928a89572548f15c256acfa23ba27b84f0b4427e228973f45760c2c37bbf2f4c36ee0b389de0f3adffd098c60
6
+ metadata.gz: 9169db34c221ede9ca6be6427cd9d17e7b791da51377d973ee15ccec51fbf914f067ba4b7706a65dd5eb3dd9580ba299bc41ec30c556ac2e6ea26d707e3ed6ab
7
+ data.tar.gz: aa5d3194f570ff2a0ef3851f9d44ffd4726537a27665aba123c7163e491f9de6bb4eee4f2d2a9c06e4c3070dd26dd014e8db3f4a92c283922ae87e02068bbb46
@@ -24,17 +24,19 @@ module Picobox
24
24
 
25
25
 
26
26
  def visit_linux subject
27
- unless os.docker_installed?
27
+ unless os.docker_installed?
28
+ publish_event :install_docker_start
29
+
30
+ stream = open('get.docker.com')
31
+
32
+ IO.copy_stream( stream, 'get-docker.sh' )
33
+
28
34
  commands = [
29
- "curl -fsSL get.docker.com -o get-docker.sh",
30
35
  "sh get-docker.sh #{Picobox.output}",
31
36
  "rm get-docker.sh",
32
37
  "#{os.su} 'usermod -aG docker #{os.user}'"
33
38
  ]
34
39
 
35
-
36
- publish_event :install_docker_start
37
-
38
40
  commands.each do |command|
39
41
  system(command)
40
42
  end
@@ -46,7 +48,7 @@ module Picobox
46
48
  else
47
49
  publish_event :docker_present, os.docker_version?
48
50
  end
49
- end
51
+ end
50
52
  end
51
53
  end
52
54
  end
@@ -1,6 +1,6 @@
1
1
  module Picobox
2
2
  # names for files / directories
3
- VERSION = '0.2.1'
3
+ VERSION = '0.2.2'
4
4
  HOMEPAGE = 'https://github.com/surzycki/picobox'
5
5
  CONFIG_DIR = '.picobox'
6
6
  PROJECT_INI = 'project.ini'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: picobox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Surzycki