opsup 0.0.3 → 0.0.4

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: 8030ca85d3e6f53108fdda9754e8aca25918716218f0bb72d0bb3c48dcbbeb8b
4
- data.tar.gz: 62a00a6858cb1cb044d0f4f78d7f1fc28f1915819253c28aab6306d4e0026b42
3
+ metadata.gz: 15cbcb87b331539e346e281df8623e51251e98e23652a81090dd382b24ffab3c
4
+ data.tar.gz: d51fd14b3185631c030db4ec27e2fdc968872f6d2ced157523fe2751994ac35b
5
5
  SHA512:
6
- metadata.gz: 7566237b3ed9fea0b6458f2691632e4ebea7739f128c0cdade3d726a218a86dbebe34d69cc5c224ea20de781599d1c6bfc03565cc22ba6f7f39cf204db4d1abb
7
- data.tar.gz: 11cf8034044990549f00d1153983366c0c9dd67acc98b7814480e64e71fa51bff54a9fe474165e59eb20bc47a61dc2cda4be0192ecb3abe258f51c5baa1fad5d
6
+ metadata.gz: 6c8178bb92af8a73d5bdc82a1bb9b0a1db3da3e7dc6af9591bfac5f7c08674d0414bd6eea8471f5331a7a40561095c1d9536aa2019a85c30a491feb862c99f1c
7
+ data.tar.gz: 17dde4e55b498fa1ed970920054408cb3090ab07143685b2cf4fdf30cfa12407d8f05fe69f940f873ee82c347a00ce2c511428e04f9f858afed7dac9e86ba6a2
data/README.md CHANGED
@@ -30,6 +30,14 @@ $ opsup --stack $YOUR_STACK_NAME --aws-cred $AWS_KEY,$AWS_SECRET deploy
30
30
 
31
31
  Opsup waits until the command completes.
32
32
 
33
+ ## How to Release
34
+
35
+ 1. Increment the version.
36
+ 2. Commit it and tag it with `v0.0.0` format.
37
+ 3. Push the tag.
38
+
39
+ Then CI does the rest.
40
+
33
41
  ### TODO
34
42
 
35
43
  - Write tests
data/lib/opsup/app.rb CHANGED
@@ -34,8 +34,9 @@ module Opsup
34
34
  sig { params(commands: T::Array[String], config: Opsup::Config).void }
35
35
  def run(commands, config)
36
36
  validate_commands(commands)
37
- @logger.warn('Started in DRYRUN MODE') if config.dryrun
38
- @logger.debug("Running #{commands} with #{config.to_h}")
37
+ @logger.warn('Starting in DRYRUN MODE') if config.dryrun
38
+ @logger.info("Commands: #{commands.join(',')}, Stack: #{config.stack_name}")
39
+ @logger.debug("Configuration details: #{config.to_h}")
39
40
 
40
41
  opsworks = new_opsworks_client(config)
41
42
  stack_operator = Opsup::StackOperator.create(opsworks: opsworks)
@@ -53,7 +54,8 @@ module Opsup
53
54
  deployer.run_command(command_to_opsworks_command(command))
54
55
  end
55
56
  ensure
56
- @logger.warn('Finished in DRYRUN MODE') if config.dryrun
57
+ msg = 'Finished' + (config.dryrun ? ' (DRYRUN MODE)' : '')
58
+ @logger.info(msg)
57
59
  end
58
60
 
59
61
  sig { params(commands: T::Array[String]).void }
data/lib/opsup/version.rb CHANGED
@@ -2,5 +2,5 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Opsup
5
- VERSION = '0.0.3'
5
+ VERSION = '0.0.4'
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opsup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - ryym
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-08 00:00:00.000000000 Z
11
+ date: 2019-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-opsworks