aws-glacier 0.0.1.alpha

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 2af39401fc377c6ec69488cbd7fcdf8b50fcd0a0
4
+ data.tar.gz: 7c693ff42356000056b38a6aceb6038d4a30cb1a
5
+ SHA512:
6
+ metadata.gz: 2f9268941cd8dfad0d96e0b21f554dc43f60bcbb9913c38e9e606b44319eea53a069ef6fd5c1e3a3158e9e6180f9a6786d950811dcb34166c986bfca26107236
7
+ data.tar.gz: f00097a6a78e1b08e1e618b231c588a9c1b3b608ca3c8dd023db4f77041405021702c836c6639716219807c6c4b5bee5de482121c209f5eadb03f47926e63ffe
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ --color
@@ -0,0 +1,6 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.0.0
4
+ - 1.9.3
5
+ notifications:
6
+ email: false
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source 'https://rubygems.org'
2
+ gemspec
3
+
4
+ gem 'thor'
5
+ gem 'fog'
6
+ gem 'ruby-progressbar'
@@ -0,0 +1,5 @@
1
+ guard 'rspec' do
2
+ watch(%r{^spec/.+_spec\.rb$})
3
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
4
+ watch('spec/spec_helper.rb') { "spec" }
5
+ end
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 Mark Schewe
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,27 @@
1
+ # Glacier
2
+
3
+ [![Gem Version](https://badge.fury.io/rb/glacier-aws.png)](http://badge.fury.io/rb/glacier-aws)
4
+ [![Build Status](https://travis-ci.org/mschewe/glacier-aws.png?branch=master)](https://travis-ci.org/mschewe/glacier-aws)
5
+ [![Code Climate](https://codeclimate.com/github/mschewe/glacier-aws.png)](https://codeclimate.com/github/mschewe/glacier-aws)
6
+ [![Coverage Status](https://coveralls.io/repos/mschewe/glacier-aws/badge.png)](https://coveralls.io/r/mschewe/glacier-aws)
7
+ [![Dependency Status](https://gemnasium.com/mschewe/glacier-aws.png)](https://gemnasium.com/mschewe/glacier-aws)
8
+
9
+ Commandline util to send and retrieve data from AWS Glacier
10
+
11
+ ## Installation
12
+
13
+ Install it yourself as:
14
+
15
+ $ gem install glacier-aws
16
+
17
+ ## Usage
18
+
19
+ TODO: Write usage instructions here
20
+
21
+ ## Contributing
22
+
23
+ 1. Fork it
24
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
25
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
26
+ 4. Push to the branch (`git push origin my-new-feature`)
27
+ 5. Create new Pull Request
@@ -0,0 +1,5 @@
1
+ require "bundler/gem_tasks"
2
+ require 'rspec/core/rake_task'
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+ task default: :spec
@@ -0,0 +1,9 @@
1
+ #!/bin/env ruby
2
+
3
+ # Exit cleanly from an early interrupt
4
+ Signal.trap("INT") { exit 1 }
5
+
6
+ require 'glacier'
7
+ require 'glacier/cli'
8
+
9
+ Glacier::CLI.start(ARGV)
@@ -0,0 +1,32 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'glacier/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "aws-glacier"
8
+ spec.version = Glacier::VERSION
9
+ spec.authors = ["Mark Schewe"]
10
+ spec.email = ["schewe.mark@gmail.com"]
11
+ spec.description = "Command line utility to send and retrieve data from AWS Glacier."
12
+ spec.summary = spec.description
13
+ spec.homepage = ""
14
+ spec.license = "MIT"
15
+
16
+ spec.default_executable = %q{glacier}
17
+ spec.files = `git ls-files`.split($/)
18
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
19
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
20
+ spec.require_paths = ["lib"]
21
+
22
+ spec.add_development_dependency "bundler", "~> 1.3"
23
+ spec.add_development_dependency "rake"
24
+
25
+ spec.add_development_dependency "rspec"
26
+ spec.add_development_dependency "guard-rspec"
27
+ spec.add_development_dependency "factory_girl"
28
+ spec.add_development_dependency "debugger"
29
+ spec.add_development_dependency "simplecov"
30
+ spec.add_development_dependency "coveralls"
31
+
32
+ end
@@ -0,0 +1,6 @@
1
+ # -*- encoding : utf-8 -*-
2
+ require "glacier/version"
3
+
4
+ module Glacier
5
+
6
+ end
@@ -0,0 +1,39 @@
1
+ require 'glacier'
2
+ require 'thor'
3
+ require 'ruby-progressbar'
4
+
5
+ module Glacier
6
+
7
+ class CLI < Thor
8
+ include Thor::Actions
9
+ class_option 'verbose', :type => :boolean, :banner => 'Enable verbose output mode.', :aliases => '-v'
10
+
11
+ desc 'config', 'Creates a configuration file to access AWS Glacier'
12
+ option :only_template, :type => :boolean, :default => false, :aliases => '-t', :banner => "Only create a template in '$HOME/.glacier'."
13
+ def config
14
+ end
15
+
16
+ desc 'list <vault>', 'Shows all vaults'
17
+ def list(vault)
18
+ end
19
+
20
+ desc 'upload <local_files> <vault>', 'Uploads a file'
21
+ long_desc <<-EOF
22
+ Uploads a file to AWS Glacier.
23
+ EOF
24
+ method_option 'recursive', :type => :boolean, :banner => 'Upload files recursive', :aliases => '-r'
25
+ def upload(local_files, vault)
26
+ end
27
+
28
+ desc 'download <vault> [local_directory]', 'Requests the download of a vault'
29
+ option :local_directory, :type => :string, :aliases => '-o', :banner => "Set your local download directory."
30
+ def download(vault)
31
+ end
32
+
33
+ desc 'delete <vault>', 'Deltes the vault'
34
+ def delete
35
+ end
36
+
37
+ end
38
+
39
+ end
@@ -0,0 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
2
+ module Glacier
3
+ VERSION = "0.0.1.alpha"
4
+ end
@@ -0,0 +1,27 @@
1
+ # -*- encoding : utf-8 -*-
2
+ require 'spec_helper'
3
+ require 'glacier/cli'
4
+
5
+ describe 'Glacier CLI' do
6
+
7
+ context 'config' do
8
+ pending
9
+ end
10
+
11
+ context 'list' do
12
+ pending
13
+ end
14
+
15
+ context 'upload' do
16
+ pending
17
+ end
18
+
19
+ context 'download' do
20
+ pending
21
+ end
22
+
23
+ context 'delete' do
24
+ pending
25
+ end
26
+
27
+ end
@@ -0,0 +1,34 @@
1
+ # -*- encoding : utf-8 -*-
2
+ require 'rubygems'
3
+ require "coveralls"
4
+
5
+ Coveralls.wear!
6
+
7
+ require 'factory_girl'
8
+ require 'glacier'
9
+
10
+ FactoryGirl.find_definitions
11
+
12
+ # Do not buffer output
13
+ $stdout.sync = true
14
+ $stderr.sync = true
15
+
16
+
17
+ def glacier(*args)
18
+ capture_io { Glacier::CLI.start(args) }
19
+ end
20
+
21
+ def capture_io
22
+ require 'stringio'
23
+ captured_stdout = StringIO.new
24
+
25
+ orig_stdout = $stdout
26
+ $stdout = captured_stdout
27
+
28
+ yield
29
+
30
+ return captured_stdout.string
31
+ ensure
32
+ $stdout = orig_stdout
33
+ endhelp
34
+ end
metadata ADDED
@@ -0,0 +1,174 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: aws-glacier
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1.alpha
5
+ platform: ruby
6
+ authors:
7
+ - Mark Schewe
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-08-11 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1.3'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: guard-rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: factory_girl
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '>='
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: debugger
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - '>='
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - '>='
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: simplecov
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - '>='
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - '>='
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: coveralls
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - '>='
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ description: Command line utility to send and retrieve data from AWS Glacier.
126
+ email:
127
+ - schewe.mark@gmail.com
128
+ executables:
129
+ - glacier
130
+ extensions: []
131
+ extra_rdoc_files: []
132
+ files:
133
+ - .gitignore
134
+ - .rspec
135
+ - .travis.yml
136
+ - Gemfile
137
+ - Guardfile
138
+ - LICENSE.txt
139
+ - README.md
140
+ - Rakefile
141
+ - bin/glacier
142
+ - glacier.gemspec
143
+ - lib/glacier.rb
144
+ - lib/glacier/cli.rb
145
+ - lib/glacier/version.rb
146
+ - spec/lib/cli_spec.rb
147
+ - spec/spec_helper.rb
148
+ homepage: ''
149
+ licenses:
150
+ - MIT
151
+ metadata: {}
152
+ post_install_message:
153
+ rdoc_options: []
154
+ require_paths:
155
+ - lib
156
+ required_ruby_version: !ruby/object:Gem::Requirement
157
+ requirements:
158
+ - - '>='
159
+ - !ruby/object:Gem::Version
160
+ version: '0'
161
+ required_rubygems_version: !ruby/object:Gem::Requirement
162
+ requirements:
163
+ - - '>'
164
+ - !ruby/object:Gem::Version
165
+ version: 1.3.1
166
+ requirements: []
167
+ rubyforge_project:
168
+ rubygems_version: 2.0.3
169
+ signing_key:
170
+ specification_version: 4
171
+ summary: Command line utility to send and retrieve data from AWS Glacier.
172
+ test_files:
173
+ - spec/lib/cli_spec.rb
174
+ - spec/spec_helper.rb