vos 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -4,7 +4,7 @@ project(
4
4
  name: "vos",
5
5
  gem: true,
6
6
  summary: "Virtual Operating System",
7
- version: '0.4.0',
7
+ # version: '0.4.0',
8
8
 
9
9
  author: "Alexey Petrushin",
10
10
  homepage: "http://github.com/alexeypetrushin/vos"
@@ -49,7 +49,7 @@ module Vos
49
49
  #
50
50
  # Miscellaneous
51
51
  #
52
- def inspect; "<#{self.class.name} #{options.merge(bucket: bucket_name).inspect}>" end
52
+ def inspect; "https://#{bucket_name}.s3.amazonaws.com" end
53
53
  alias_method :to_s, :inspect
54
54
 
55
55
  def _clear
@@ -30,11 +30,9 @@ module Vos
30
30
  attrs[:size] = file.content_length
31
31
  attrs[:updated_at] = file.last_modified
32
32
  attrs
33
- # There's no dirs, always returning false
34
- # elsif dir_exists? path
35
- # attrs[:dir] = true
36
33
  else
37
- return nil
34
+ # There's no dirs in S3, so we always return nil
35
+ nil
38
36
  end
39
37
  end
40
38
 
@@ -79,7 +77,8 @@ module Vos
79
77
  # Dir
80
78
  #
81
79
  def create_dir path
82
- raise Error, ":create_dir not supported!"
80
+ # there's no concept of dir in s
81
+ # raise Error, ":create_dir not supported!"
83
82
  end
84
83
 
85
84
  def delete_dir path
@@ -11,6 +11,9 @@ module Vos
11
11
  config: true
12
12
  }
13
13
 
14
+ #
15
+ # Vos::Drivers::Ssh.new name: 'xxx', user: 'xxx', password: 'xxx'
16
+ #
14
17
  def initialize options = {}
15
18
  options = options.clone
16
19
  raise ":host not provided!" unless options[:host]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vos
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-09-08 00:00:00.000000000Z
12
+ date: 2011-09-09 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: vfs
16
- requirement: &2832540 !ruby/object:Gem::Requirement
16
+ requirement: &2832590 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2832540
24
+ version_requirements: *2832590
25
25
  description:
26
26
  email:
27
27
  executables: []