app_builder 0.2.3 → 0.2.4
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 +1 -1
- data/lib/app_builder/environment.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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c0cda82ca1043fd288c27ea1ba7d407dbfcc9a73e48b7f05611b166891e45220
|
4
|
+
data.tar.gz: 78db32348bee99238d155d6ba9107b2b6c10f704fb0a6e5aaef5ffc763b9a976
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a109c1cb7480cd771539e2d15310ba767b04ea3a77624394a8a58f80bc787de3d44bc3a231c648943afa5244cd00dc229233eab286bcb290261f566e9520aa22
|
7
|
+
data.tar.gz: 742cb157bd79786924cd16d9e52cc2ee39cc1e234631997461fd9b83cdf7dda3df11c80ab67b7a0b4fc4eb73d671810a0c9ca63f7493e75347152d15c77df935
|
data/lib/app_builder/config.rb
CHANGED
@@ -132,7 +132,7 @@ module AppBuilder
|
|
132
132
|
@build_id = Time.now.strftime("%Y%m%d%H%M%S")
|
133
133
|
@project_name = File.basename(`git rev-parse --show-toplevel`.chomp)
|
134
134
|
@remote_repository = `git remote get-url origin`.chomp
|
135
|
-
@branch = ENV.fetch("TARGET_BRANCH",
|
135
|
+
@branch = ENV.fetch("TARGET_BRANCH", `git symbolic-ref --short HEAD`.chomp)
|
136
136
|
@revision = `git rev-parse #{branch}`.chomp
|
137
137
|
@remote_src_path = "assets"
|
138
138
|
@manifest_template_path = File.expand_path("template/manifest.yml.erb", __dir__)
|
@@ -6,7 +6,7 @@ module AppBuilder
|
|
6
6
|
def initialize(source_path, name: nil, repo_path: nil, branch: nil)
|
7
7
|
@name = name || ENV.fetch("APP_ENV", "default")
|
8
8
|
@repo_path = repo_path || `git rev-parse --show-toplevel`.chomp
|
9
|
-
@branch = branch || `git symbolic-ref --short HEAD`.chomp
|
9
|
+
@branch = branch || ENV.fetch("TARGET_BRANCH", `git symbolic-ref --short HEAD`.chomp)
|
10
10
|
@source_path = source_path
|
11
11
|
end
|
12
12
|
|
data/lib/app_builder/version.rb
CHANGED