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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZDk4NGEzNjkzYjkwNmJjMWUwODk1OTUyMDkzYjM3ZTM5YzIyZjc1Yg==
4
+ MjZiZTUyNDJiYTFhN2Y3MmNiYzQxNGIwYTZiYWY1MDZhOWMxMmRhZA==
5
5
  data.tar.gz: !binary |-
6
- ZTg1ZGUwZjM5YmVjYmY4YzkzMmYzYjAxZDM1NjBlODQ2ZTY3OTc4ZA==
6
+ MGJjM2QxZGM4OTAwNGVkZTg2ZTgwOTMxYzE2Yjk3YWFjMTY3ZjIzMw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MDg5OWJjODRkNDhlMjMxNDhlODAwZDY1OTUxZjJjZmM5ZTQ4OTI5NzliMjJh
10
- NGQ3OTU2YTI2OGUyMjk2ZTE2YzJjZjBkOGZiYzNhYzQ3OGNhMTY2ZTMzY2Ey
11
- ZDc3NzIyOWQ0NWI4MjAzNjhjMDRhZGJhZjc4NjhmZDAyOThmODY=
9
+ ZmI1Njk5MmMzZjQ2NTE2OTE0OWIyNzkyZGE0OWQ4OGI3NzdjNjc4OTA4ZjVh
10
+ OGIwYjc1YjNhNDU3NjgxYTEyMzY0MDdkZDc4Y2Q3NzRiMWM3MGY1ZGM2ZTVm
11
+ ZDRiMmE4NDRlNTIwMmEwYWIwMjYyMTg4NjQ0ODcyN2QxYmUzMzU=
12
12
  data.tar.gz: !binary |-
13
- NWMwMmJjNTY1M2NmM2E5Zjg4Y2Y2MTA3ODM1MGQyMzUwMzkxOGY4NWY0NjEy
14
- NjkzMTY2ODdkZjQyNzMzYmQzMmYyOTFhMjc5YzI1MmQwZjQ5MGQ0MTNmNjI3
15
- YjU1OTQ3MDlmMDQ4ODY3Nzk0YzVmNTJkM2RmMWI2NTZiM2RmMGY=
13
+ MzFhNTlmMWQzNTJhYTk0ZjM5YjY5NDQzOTcyMTRjNDIwNWE3Y2VmYjMxMDJh
14
+ MjgwNzRlNTFkNGNlZmJlOTVkZWE0ZDE0M2FkM2UzNjU4Yzk2ZGU5YzYzNTZi
15
+ ZThjZWNkNTgzYTBkZjBkMGRiMDAyYmM2YzA4NGNlNmQwMzBhNTE=
@@ -3,6 +3,7 @@
3
3
  ## v0.13.0
4
4
 
5
5
  * bosh-lite example manifests generated for new releases
6
+ * created folder always has -boshrelease suffix [v0.13.1]
6
7
 
7
8
  ## v0.12.0
8
9
 
@@ -6,7 +6,7 @@ module Bosh::Gen
6
6
  class NewReleaseGenerator < Thor::Group
7
7
  include Thor::Actions
8
8
 
9
- argument :app_path
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(app_path, destination_root)
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
- private
162
-
163
- def project_name
164
- @project_name ||= repository_name.gsub(/-(?:boshrelease|release)$/, '')
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 ||= File.basename(app_path)
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
@@ -1,5 +1,5 @@
1
1
  module Bosh
2
2
  module Gen
3
- VERSION = "0.13.0"
3
+ VERSION = "0.13.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bosh-gen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.13.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dr Nic Williams