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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 503ab415bb2c1308114db87a96941bf6eaa4f5c0
4
- data.tar.gz: 1c0d30f54334b0500f727350e41ee71232003204
3
+ metadata.gz: 188f3895b146831fa165dc83f26f3e19e414a730
4
+ data.tar.gz: 1d83b87f0cf4886d0b63861d93bec433b08a9841
5
5
  SHA512:
6
- metadata.gz: 363d434dd3477d8f9635883b50c28d9143df3b9ead883b5afa23b506411d38a8c80ea676df7ff4f11815fb8c24eb096ce5b2156bd7876d587f4c2c3281cc52e1
7
- data.tar.gz: a0ba645272b055acccbfc2ac72c6c3a049a1617b25d2ec72037ea8a5113d2cdf55e162c187586ddf8bfe19c92659fed32bd0cb1d3c876b6e95f092388a3fe82b
6
+ metadata.gz: 4b0ad617c30af66429c3fb502ad67d72f7653de396c31a3338fd5bf10d0c4d8f7a7a4b71e62c61deed9bf8c6746eb6fada043f6d33efe0c0ec0de7faf596f7a0
7
+ data.tar.gz: 754f46452997db67bfdf2c2b2c163b391f4ff7a14a2fd366fc4c8a9340e93bccd989d96f86055a9b92fff0441b73e588d4e0badb4c9f00ca7df7f9165a9a3bc1
@@ -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
- :upload_type, # :s3 or :http or :https (default: :s3)
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
- "#{upload_type.to_s}://#{File.join(upload_id, path)}"
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
- @upload_type = :s3
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")
@@ -54,7 +54,7 @@ module AppBuilder
54
54
  private
55
55
 
56
56
  def s3?
57
- upload_type == :s3
57
+ resource_type == :s3
58
58
  end
59
59
 
60
60
  def s3_client
@@ -1,3 +1,3 @@
1
1
  module AppBuilder
2
- VERSION = "0.1.10"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: app_builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - i2bskn