vos 0.1.4 → 0.2

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.4",
5
+ version: "0.2",
6
6
  summary: "Virtual Operating System",
7
7
 
8
8
  author: "Alexey Petrushin",
@@ -103,7 +103,7 @@ module Vos
103
103
  sftp.upload! from.path, fix_path(to.path)
104
104
  true
105
105
  elsif to_fs.local?
106
- sftp.download! fix_path(from.path), to.path, :recursive => true
106
+ sftp.download! fix_path(from.path), to.path, recursive: true
107
107
  true
108
108
  else
109
109
  false
@@ -3,6 +3,13 @@ require 'net/ssh'
3
3
  require 'net/sftp'
4
4
 
5
5
  require 'vfs'
6
+ Vfs.class_eval do
7
+ class << self
8
+ def default_storage
9
+ ::Vos::Box.local
10
+ end
11
+ end
12
+ end
6
13
 
7
14
  # class File
8
15
  # class << self
@@ -11,7 +18,7 @@ require 'vfs'
11
18
  # clean = options.delete :clean
12
19
  # raise "unsupported options #{options.keys}!" unless options.empty?
13
20
  #
14
- # FileUtils.rm_r directory, :force => true if clean and File.exist?(directory)
21
+ # FileUtils.rm_r directory, force: true if clean and File.exist?(directory)
15
22
  # FileUtils.mkdir_p directory
16
23
  # end
17
24
  #
data/readme.md CHANGED
@@ -35,6 +35,7 @@ configuration tool [Cluster Management][cluster_management].
35
35
 
36
36
  ### v 0.2
37
37
 
38
+ - add :host/:user/:port attributes to box
38
39
  - process management (find/kill/filters/attributes)
39
40
  - other os resources management (disk)
40
41
 
@@ -1,7 +1,7 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe Vos::Box do
4
- before :each do
4
+ before do
5
5
  @box = Vos::Box.new
6
6
  @box.stub :puts
7
7
  end
@@ -4,7 +4,7 @@ describe Vos::Drivers::Local do
4
4
  it_should_behave_like "vos driver"
5
5
  it_should_behave_like "vfs storage"
6
6
 
7
- before :each do
7
+ before do
8
8
  @storage = @driver = Vos::Drivers::Local.new
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,60 +1,56 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: vos
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: '0.2'
4
5
  prerelease:
5
- version: 0.1.4
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Alexey Petrushin
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2011-02-16 00:00:00 +03:00
12
+ date: 2011-04-11 00:00:00.000000000 +04:00
14
13
  default_executable:
15
- dependencies:
16
- - !ruby/object:Gem::Dependency
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
17
16
  name: net-ssh
18
- prerelease: false
19
- requirement: &id001 !ruby/object:Gem::Requirement
17
+ requirement: &3051820 !ruby/object:Gem::Requirement
20
18
  none: false
21
- requirements:
22
- - - ">="
23
- - !ruby/object:Gem::Version
24
- version: "0"
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
22
+ version: '0'
25
23
  type: :runtime
26
- version_requirements: *id001
27
- - !ruby/object:Gem::Dependency
28
- name: net-sftp
29
24
  prerelease: false
30
- requirement: &id002 !ruby/object:Gem::Requirement
25
+ version_requirements: *3051820
26
+ - !ruby/object:Gem::Dependency
27
+ name: net-sftp
28
+ requirement: &3051610 !ruby/object:Gem::Requirement
31
29
  none: false
32
- requirements:
33
- - - ">="
34
- - !ruby/object:Gem::Version
35
- version: "0"
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
36
34
  type: :runtime
37
- version_requirements: *id002
38
- - !ruby/object:Gem::Dependency
39
- name: vfs
40
35
  prerelease: false
41
- requirement: &id003 !ruby/object:Gem::Requirement
36
+ version_requirements: *3051610
37
+ - !ruby/object:Gem::Dependency
38
+ name: vfs
39
+ requirement: &3067790 !ruby/object:Gem::Requirement
42
40
  none: false
43
- requirements:
44
- - - ">="
45
- - !ruby/object:Gem::Version
46
- version: "0"
41
+ requirements:
42
+ - - ! '>='
43
+ - !ruby/object:Gem::Version
44
+ version: '0'
47
45
  type: :runtime
48
- version_requirements: *id003
46
+ prerelease: false
47
+ version_requirements: *3067790
49
48
  description:
50
49
  email:
51
50
  executables: []
52
-
53
51
  extensions: []
54
-
55
52
  extra_rdoc_files: []
56
-
57
- files:
53
+ files:
58
54
  - Rakefile
59
55
  - readme.md
60
56
  - lib/old/ssh.rb
@@ -81,30 +77,26 @@ files:
81
77
  has_rdoc: true
82
78
  homepage: http://github.com/alexeypetrushin/vos
83
79
  licenses: []
84
-
85
80
  post_install_message:
86
81
  rdoc_options: []
87
-
88
- require_paths:
82
+ require_paths:
89
83
  - lib
90
- required_ruby_version: !ruby/object:Gem::Requirement
84
+ required_ruby_version: !ruby/object:Gem::Requirement
91
85
  none: false
92
- requirements:
93
- - - ">="
94
- - !ruby/object:Gem::Version
95
- version: "0"
96
- required_rubygems_version: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ! '>='
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ required_rubygems_version: !ruby/object:Gem::Requirement
97
91
  none: false
98
- requirements:
99
- - - ">="
100
- - !ruby/object:Gem::Version
101
- version: "0"
92
+ requirements:
93
+ - - ! '>='
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
102
96
  requirements: []
103
-
104
97
  rubyforge_project:
105
98
  rubygems_version: 1.5.1
106
99
  signing_key:
107
100
  specification_version: 3
108
101
  summary: Virtual Operating System
109
102
  test_files: []
110
-