bosh-gen 0.13.0 → 0.13.1
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.
- checksums.yaml +8 -8
- data/ChangeLog.md +1 -0
- data/lib/bosh/gen/generators/new_release_generator.rb +19 -8
- data/lib/bosh/gen/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MjZiZTUyNDJiYTFhN2Y3MmNiYzQxNGIwYTZiYWY1MDZhOWMxMmRhZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MGJjM2QxZGM4OTAwNGVkZTg2ZTgwOTMxYzE2Yjk3YWFjMTY3ZjIzMw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZmI1Njk5MmMzZjQ2NTE2OTE0OWIyNzkyZGE0OWQ4OGI3NzdjNjc4OTA4ZjVh
|
10
|
+
OGIwYjc1YjNhNDU3NjgxYTEyMzY0MDdkZDc4Y2Q3NzRiMWM3MGY1ZGM2ZTVm
|
11
|
+
ZDRiMmE4NDRlNTIwMmEwYWIwMjYyMTg4NjQ0ODcyN2QxYmUzMzU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MzFhNTlmMWQzNTJhYTk0ZjM5YjY5NDQzOTcyMTRjNDIwNWE3Y2VmYjMxMDJh
|
14
|
+
MjgwNzRlNTFkNGNlZmJlOTVkZWE0ZDE0M2FkM2UzNjU4Yzk2ZGU5YzYzNTZi
|
15
|
+
ZThjZWNkNTgzYTBkZjBkMGRiMDAyYmM2YzA4NGNlNmQwMzBhNTE=
|
data/ChangeLog.md
CHANGED
@@ -6,7 +6,7 @@ module Bosh::Gen
|
|
6
6
|
class NewReleaseGenerator < Thor::Group
|
7
7
|
include Thor::Actions
|
8
8
|
|
9
|
-
argument :
|
9
|
+
argument :proposed_app_path
|
10
10
|
argument :flags, :type => :hash
|
11
11
|
|
12
12
|
def self.source_root
|
@@ -14,7 +14,7 @@ module Bosh::Gen
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def create_root
|
17
|
-
self.destination_root = File.expand_path(
|
17
|
+
self.destination_root = File.expand_path(repository_path, destination_root)
|
18
18
|
empty_directory '.'
|
19
19
|
FileUtils.cd(destination_root) unless options[:pretend]
|
20
20
|
end
|
@@ -157,15 +157,26 @@ module Bosh::Gen
|
|
157
157
|
git :add => "."
|
158
158
|
git :commit => "-m 'Initial scaffold'"
|
159
159
|
end
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
160
|
+
|
161
|
+
def show_location
|
162
|
+
say ""
|
163
|
+
say "Next, change to BOSH release location:"
|
164
|
+
say "cd #{repository_path}", :yellow
|
165
165
|
end
|
166
166
|
|
167
|
+
private
|
168
|
+
|
169
|
+
# converts the base name into having -boshrelease suffix
|
167
170
|
def repository_name
|
168
|
-
@repository_name ||=
|
171
|
+
@repository_name ||= "#{project_name}-boshrelease"
|
172
|
+
end
|
173
|
+
|
174
|
+
def repository_path
|
175
|
+
File.join(File.dirname(proposed_app_path), repository_name)
|
176
|
+
end
|
177
|
+
|
178
|
+
def project_name
|
179
|
+
@project_name ||= File.basename(proposed_app_path).gsub(/-(?:boshrelease|release)$/, '')
|
169
180
|
end
|
170
181
|
|
171
182
|
def blobstore_type
|
data/lib/bosh/gen/version.rb
CHANGED