app_builder 0.1.10 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/app_builder/config.rb +3 -3
- data/lib/app_builder/uploader.rb +1 -1
- data/lib/app_builder/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 188f3895b146831fa165dc83f26f3e19e414a730
|
4
|
+
data.tar.gz: 1d83b87f0cf4886d0b63861d93bec433b08a9841
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b0ad617c30af66429c3fb502ad67d72f7653de396c31a3338fd5bf10d0c4d8f7a7a4b71e62c61deed9bf8c6746eb6fada043f6d33efe0c0ec0de7faf596f7a0
|
7
|
+
data.tar.gz: 754f46452997db67bfdf2c2b2c163b391f4ff7a14a2fd366fc4c8a9340e93bccd989d96f86055a9b92fff0441b73e588d4e0badb4c9f00ca7df7f9165a9a3bc1
|
data/lib/app_builder/config.rb
CHANGED
@@ -6,7 +6,7 @@ module AppBuilder
|
|
6
6
|
:remote_repository, # default: remote origin
|
7
7
|
:branch, # default: TARGET_BRANCH or master
|
8
8
|
:revision, # default: commit hash
|
9
|
-
:
|
9
|
+
:resource_type, # :s3 or :http or :https (default: :s3)
|
10
10
|
:upload_id, # bucket name or remote host (default: none)
|
11
11
|
:remote_app_home_base, # default: /var/www
|
12
12
|
:logger, # default: AppBuilder::Logger
|
@@ -124,7 +124,7 @@ module AppBuilder
|
|
124
124
|
end
|
125
125
|
|
126
126
|
def uploaded_url(path)
|
127
|
-
"#{
|
127
|
+
"#{resource_type.to_s}://#{File.join(upload_id, path)}"
|
128
128
|
end
|
129
129
|
|
130
130
|
def reset
|
@@ -140,7 +140,7 @@ module AppBuilder
|
|
140
140
|
@resource_ssh_options = {}
|
141
141
|
@remote_app_home_base = "/var/www"
|
142
142
|
@logger = Logger.new(STDOUT)
|
143
|
-
@
|
143
|
+
@resource_type = :s3
|
144
144
|
|
145
145
|
# for upload to S3 (from `.aws/config` and `.aws/credentials`)
|
146
146
|
@region = ENV.fetch("AWS_DEFAULT_REGION", aws_config("region") || "ap-northeast-1")
|
data/lib/app_builder/uploader.rb
CHANGED
data/lib/app_builder/version.rb
CHANGED