s3deploy 0.0.1 → 0.0.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.
- data/bin/s3deploy +9 -4
- data/lib/.s3deploy.yml +9 -0
- data/lib/s3deploy/version.rb +1 -1
- data/lib/s3deploy.rb +1 -2
- metadata +2 -1
data/bin/s3deploy
CHANGED
@@ -1,9 +1,14 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
require "yaml"
|
4
3
|
require "s3deploy"
|
5
4
|
|
6
|
-
|
7
|
-
|
8
|
-
|
5
|
+
puts "This is a pre-release but expect something more within a week or so :)"
|
6
|
+
|
7
|
+
if ARGV.empty?
|
8
|
+
s3deploy = S3deploy.new
|
9
|
+
s3deploy.deploy
|
10
|
+
elsif ARGV.first == "init"
|
11
|
+
S3deploy.install_config(ARGV.include? "--default")
|
12
|
+
else
|
13
|
+
puts "Nope, no command."
|
9
14
|
end
|
data/lib/.s3deploy.yml
ADDED
data/lib/s3deploy/version.rb
CHANGED
data/lib/s3deploy.rb
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
require "s3deploy/version"
|
2
2
|
require "AWS/S3"
|
3
|
-
require "YAML"
|
4
3
|
|
5
4
|
class S3deploy
|
6
5
|
|
@@ -58,7 +57,7 @@ class S3deploy
|
|
58
57
|
`mkdir -p #{File.dirname(install_path)}` unless File.directory? File.dirname(install_path)
|
59
58
|
end
|
60
59
|
|
61
|
-
`cp #{File.dirname(File.expand_path(__FILE__)) + "/.s3deploy.yml"} #{install_path}`
|
60
|
+
puts `cp #{File.dirname(File.expand_path(__FILE__)) + "/.s3deploy.yml"} #{install_path}`
|
62
61
|
|
63
62
|
puts "A configuration file has been created at #{install_path}"
|
64
63
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: s3deploy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -41,6 +41,7 @@ files:
|
|
41
41
|
- README.md
|
42
42
|
- Rakefile
|
43
43
|
- bin/s3deploy
|
44
|
+
- lib/.s3deploy.yml
|
44
45
|
- lib/s3deploy.rb
|
45
46
|
- lib/s3deploy/version.rb
|
46
47
|
- s3deploy.gemspec
|