Sha256: a0f5777f35a73eec62507d82a6ddef8364038d00fe00b012171bcb5d35b02e1c

Contents?: true

Size: 1.59 KB

Versions: 56

Compression:

Stored size: 1.59 KB

Contents

# Cfn Status

Helper library provides status of CloudFormation stack.

## Usage

Add this line to your gem's gemspec:

```ruby
  gem.add_development_dependency "cfn-status"
```

Require it to your library:

```ruby
require "cfn/status"
```

Use like so:

```ruby
status = Cfn::Status.new(stack_name)
status.run # prints out stack events
```

The `status.run` will:

* print out the most recent stack events and return right away if the stack is in a completed state.
* print out the most recent stack events and poll for more events until the stack in a completed state.

To find out whether the most recent completed state of the stack was a success or a fail, you can use `status.success?`.

```ruby
status.success?
```

If you need to just wait for the stack to complete, you can also use `status.wait`.

```ruby
status.wait
status.success?
```

## Development

After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).

## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/cfn-status.

## License

The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).

Version data entries

56 entries across 56 versions & 6 rubygems

Version Path
pipedream-0.4.8 vendor/cfn-status/README.md
pipedream-0.4.7 vendor/cfn-status/README.md
pipedream-0.4.6 vendor/cfn-status/README.md
pipedream-0.4.5 vendor/cfn-status/README.md
cody-0.9.8 vendor/cfn-status/README.md
cody-0.9.7 vendor/cfn-status/README.md
cody-0.9.6 vendor/cfn-status/README.md
cody-0.9.5 vendor/cfn-status/README.md
cody-0.9.4 vendor/cfn-status/README.md
cody-0.9.3 vendor/cfn-status/README.md
cody-0.9.2 vendor/cfn-status/README.md
cody-0.9.1 vendor/cfn-status/README.md
cody-0.9.0 vendor/cfn-status/README.md
cody-0.8.6 vendor/cfn-status/README.md
cody-0.8.5 vendor/cfn-status/README.md
cody-0.8.4 vendor/cfn-status/README.md
cody-0.8.3 vendor/cfn-status/README.md
cody-0.8.2 vendor/cfn-status/README.md
cody-0.8.1 vendor/cfn-status/README.md
cody-0.8.0 vendor/cfn-status/README.md