MuranoCLI 3.2.3.beta.2 → 3.2.3.beta.3

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
  SHA256:
3
- metadata.gz: 0d01df36e341bf9526ec4248065d112128b2e87fc22c5f27718d775e9a5a50db
4
- data.tar.gz: 4783485bba484bc1eb74178b2b352315b43a3850df08809044e814de55e3c3df
3
+ metadata.gz: abe4e79ef215b77dd72b65c6191956f81f2fc533dd96b9be9711ed2da3a89387
4
+ data.tar.gz: 4e569b7692e9e7d8b48657bf58aff35fa84780a53e52d76d17ab95f8dd74cb05
5
5
  SHA512:
6
- metadata.gz: b37877c937b59271a62e6ef6d1f79a7344abdbe9d74acaa5bcfa69ca2bf85fbb65af0e6be7c7681099f69753d532fd54b24bbb3a7621b23c47b83b553508b9af
7
- data.tar.gz: 7b9e252bd5dec59938d2d41a954508dee32306f49ebed69bd97b6cd7d4b7857391e70d822562db536abefc2acb925376296c912ad66a0127f4e330dd8f7877d1
6
+ metadata.gz: 07ecabb788fb3a152c92fceb79074d3dbfe24bd4054da0a384ad371ebb6b0184a205b99833d6900605d43733d9fa46b66d5afc41358d00797e3657c699b96ccd
7
+ data.tar.gz: eb573fa3eb4d17b7c191c871243d7944c8111e0b9d7771ae6941b6366f472145b53949f0c564b3d3071049a4d87d01bdceee410913548923eb090769487ba7a7
data/.gitignore CHANGED
@@ -51,3 +51,5 @@ Gemfile.lock
51
51
  # Output from .trustme.vim and .trustme.sh
52
52
  .trustme.log
53
53
 
54
+ # common developer generated debug files
55
+ curldebug.out
data/Rakefile CHANGED
@@ -306,7 +306,7 @@ namespace :bump do
306
306
  4. Run `rake publish:develop` or `rake publish:master` to create and
307
307
  upload a pre-release or production Gem.
308
308
  ).strip
309
- Launchy.open("#{gh_pr_uri}")
309
+ Launchy.open(gh_pr_uri.to_s)
310
310
  end
311
311
 
312
312
  # ***
@@ -391,7 +391,7 @@ namespace :package do
391
391
  2. Run `rake package:publish` to download the Jenkins CI-built Gem from
392
392
  GitHub and upload it to rubygems.org.
393
393
  ).strip
394
- Launchy.open("#{jenkins_job_uri}")
394
+ Launchy.open(jenkins_job_uri.to_s)
395
395
  end
396
396
 
397
397
  def tag_version(tag_ver, branch)
@@ -217,7 +217,7 @@ that you can edit.
217
217
  end
218
218
 
219
219
  def highlight_id(id)
220
- Rainbow(id).aliceblue.bright.underline
220
+ Rainbow(id).bright
221
221
  end
222
222
 
223
223
  def validate_dir!(acc, args, options)
@@ -207,40 +207,11 @@ def link_solutions(sol_a, sol_b, options)
207
207
  puts '' if verbose
208
208
 
209
209
  # Get event handlers for application, and look for product event handler.
210
+ # UPDATE: We no longer automatically create an eventhandlers (MUR-8297)
210
211
  MrMurano::Verbose.whirly_msg 'Fetching handlers...'
211
212
  evthlr = MrMurano::EventHandlerSolnApp.new(sol_a.api_id)
212
- hdlrs = evthlr.search(sol_b.api_id)
213
- evt_hlr_exists = hdlrs.any?
213
+ evthlr.search(sol_b.api_id)
214
214
  MrMurano::Verbose.whirly_stop
215
-
216
- # Create the event handler, using a simple script,
217
- # like the web UI does (yeti yeti spaghetti).
218
- unless evt_hlr_exists
219
- MrMurano::Verbose.whirly_msg 'Setting default event handler...'
220
- # Call Murano.
221
- evthlr.default_event_script(sol_b.api_id) do |request, http|
222
- response = http.request(request)
223
- MrMurano::Verbose.whirly_stop
224
- if response.is_a?(Net::HTTPSuccess)
225
- say('Created default event handler')
226
- elsif response.is_a?(Net::HTTPConflict)
227
- evt_hlr_exists = true
228
- else
229
- resp_msg = MrMurano::Verbose.fancy_ticks(Rainbow(response.message).underline)
230
- MrMurano::Verbose.error("Failed to create default event handler: #{resp_msg}")
231
- evthlr.showHttpError(request, response)
232
- end
233
- end
234
- end
235
- if evt_hlr_exists
236
- msg = 'Event handler already created'
237
- if warn_on_conflict
238
- sercfg.warning msg
239
- else
240
- say(msg)
241
- end
242
- end
243
- puts '' if verbose
244
215
  end
245
216
 
246
217
  def unlink_solutions(sol_a, sol_b)
@@ -78,7 +78,12 @@ alias_command 'product pull', 'syncdown', '--no-delete', '--type', 'product'
78
78
 
79
79
  def syncup_files(options, args=[])
80
80
  MrMurano::SyncRoot.instance.each_filtered(options) do |_name, _type, klass, desc|
81
- MrMurano::Verbose.whirly_msg "Syncing #{Inflecto.pluralize(desc)}..."
81
+ if (args.empty?)
82
+ MrMurano::Verbose.whirly_msg "Syncing #{Inflecto.pluralize(desc)}..."
83
+ else
84
+ # We are syncing up specific files that were indicated as args
85
+ MrMurano::Verbose.whirly_msg args.length == 1 ? 'Syncing specified file...' : 'Syncing specified files...'
86
+ end
82
87
  sol = klass.new
83
88
  sol.syncup(options, args)
84
89
  end
@@ -39,7 +39,7 @@ module MrMurano
39
39
  version_notification += "----------------------------------------------------------\n\n\n\n\n\n"
40
40
  version_notification
41
41
  end
42
- VERSION = '3.2.3.beta.2'
42
+ VERSION = '3.2.3.beta.3'
43
43
  EXE_NAME = File.basename($PROGRAM_NAME)
44
44
  SIGN_UP_URL = 'https://exosite.com/signup/'
45
45
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: MuranoCLI
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.3.beta.2
4
+ version: 3.2.3.beta.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Exosite LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-28 00:00:00.000000000 Z
11
+ date: 2018-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: certified