opsup 0.0.3 → 0.0.4
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 +4 -4
- data/README.md +8 -0
- data/lib/opsup/app.rb +5 -3
- data/lib/opsup/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 15cbcb87b331539e346e281df8623e51251e98e23652a81090dd382b24ffab3c
|
4
|
+
data.tar.gz: d51fd14b3185631c030db4ec27e2fdc968872f6d2ced157523fe2751994ac35b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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('
|
38
|
-
@logger.
|
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
|
-
|
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
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.
|
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-
|
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
|