vos 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -2,7 +2,7 @@ require 'rake_ext'
2
2
 
3
3
  project(
4
4
  name: "vos",
5
- version: "0.1.2",
5
+ version: "0.1.3",
6
6
  summary: "Virtual Operating System",
7
7
 
8
8
  author: "Alexey Petrushin",
data/lib/vos/box/vfs.rb CHANGED
@@ -14,7 +14,7 @@ module Vos
14
14
  end
15
15
 
16
16
  def to_dir
17
- to_entry
17
+ to_entry.dir
18
18
  end
19
19
 
20
20
  # def [] path
@@ -22,7 +22,12 @@ module Vos
22
22
  # end
23
23
  # alias_method :/, :[]
24
24
 
25
- %w(dir file entry entries [] / tmp).each do |m|
25
+ %w(
26
+ entry dir file
27
+ entries dirs files
28
+ [] /
29
+ tmp
30
+ ).each do |m|
26
31
  script = <<-RUBY
27
32
  def #{m} *a, &b
28
33
  to_entry.#{m} *a, &b
@@ -39,7 +39,7 @@ module Vos
39
39
  opt = self.options.clone
40
40
  host = opt.delete :host #] || raise('host not provided!')
41
41
  # user = options.delete(:user) || raise('user not provied!')
42
-
42
+
43
43
  @ssh = Net::SSH.start(host, nil, opt)
44
44
  @sftp = @ssh.sftp.connect
45
45
  end
data/lib/vos.rb CHANGED
@@ -18,4 +18,8 @@ require 'open3'
18
18
  box
19
19
 
20
20
  helpers/ubuntu
21
- ).each{|f| require "vos/#{f}"}
21
+ ).each{|f| require "vos/#{f}"}
22
+
23
+ unless $vos_dont_mess_with_global_namespace
24
+ Box = Vos::Box
25
+ end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 2
9
- version: 0.1.2
8
+ - 3
9
+ version: 0.1.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Alexey Petrushin