snapctl 0.39.0__tar.gz → 0.39.2__tar.gz

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.

Potentially problematic release.


This version of snapctl might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: snapctl
3
- Version: 0.39.0
3
+ Version: 0.39.2
4
4
  Summary: Snapser CLI Tool
5
5
  Author: Ajinkya Apte
6
6
  Author-email: aj@snapser.com
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "snapctl"
3
- version = "0.39.0"
3
+ version = "0.39.2"
4
4
  description = "Snapser CLI Tool"
5
5
  authors = ["Ajinkya Apte <aj@snapser.com>"]
6
6
  readme = "README.md"
@@ -310,7 +310,6 @@ class ByoGs:
310
310
  3. Build your snap
311
311
  """
312
312
  self._check_dependencies()
313
- self._docker_login()
314
313
  self._docker_build()
315
314
 
316
315
  def push(self) -> None:
@@ -322,8 +321,8 @@ class ByoGs:
322
321
  4. Push your snap
323
322
  """
324
323
  self._check_dependencies()
325
- self._docker_login()
326
324
  self._docker_tag()
325
+ self._docker_login()
327
326
  self._docker_push()
328
327
 
329
328
  # Upper echelon commands
@@ -338,11 +337,11 @@ class ByoGs:
338
337
  6. Upload swagger.json
339
338
  """
340
339
  self._check_dependencies()
341
- self._docker_login()
342
340
  if not self.skip_build:
343
341
  self._docker_build()
344
342
  else:
345
343
  info('--skip-build set. Skipping the build step.')
346
344
  self._docker_tag()
345
+ self._docker_login()
347
346
  self._docker_push()
348
347
  snapctl_success('BYOGS publish successful')
@@ -423,8 +423,8 @@ class ByoSnap:
423
423
  SNAPCTL_INPUT_ERROR)
424
424
  # Check path
425
425
  if self.resources_path:
426
- docker_file_path = f"{
427
- self.resources_path}/{self.dockerfile}"
426
+ docker_file_path = \
427
+ f"{self.resources_path}/{self.dockerfile}"
428
428
  else:
429
429
  docker_file_path = f"{self.path}/{self.dockerfile}"
430
430
  if not self.skip_build and not os.path.isfile(docker_file_path):
@@ -497,7 +497,6 @@ class ByoSnap:
497
497
  3. Build your snap
498
498
  """
499
499
  self._check_dependencies()
500
- self._docker_login()
501
500
  self._docker_build()
502
501
 
503
502
  def push(self) -> bool:
@@ -509,8 +508,8 @@ class ByoSnap:
509
508
  4. Push your snap
510
509
  """
511
510
  self._check_dependencies()
512
- self._docker_login()
513
511
  self._docker_tag()
512
+ self._docker_login()
514
513
  self._docker_push()
515
514
 
516
515
  # Upper echelon commands
@@ -658,12 +657,12 @@ class ByoSnap:
658
657
  6. Upload swagger.json
659
658
  """
660
659
  self._check_dependencies()
661
- self._docker_login()
662
660
  if not self.skip_build:
663
661
  self._docker_build()
664
662
  else:
665
663
  info('--skip-build set. Skipping the build step.')
666
664
  self._docker_tag()
665
+ self._docker_login()
667
666
  self._docker_push()
668
667
  if self.path is not None or self.resources_path is not None:
669
668
  self.upload_docs()
@@ -2,7 +2,7 @@
2
2
  Constants used by snapctl
3
3
  """
4
4
  COMPANY_NAME = 'Snapser'
5
- VERSION = '0.39.0'
5
+ VERSION = '0.39.2'
6
6
  CONFIG_FILE_MAC = '~/.snapser/config'
7
7
  CONFIG_FILE_WIN = '%homepath%\\.snapser\\config'
8
8
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes