Skip to content

Kazuma/infrataster-plugin-ssl_certificates

Repository files navigation

Infrataster::Plugin::SslCertificates

Gem Version Dependency Status Build Status

Check SSL certificates plugin for Infrataster

Installation

Add this line to your application's Gemfile:

gem 'infrataster-plugin-ssl_certificates'

And then add the following line to your spec_helper.rb:

require 'infrataster-plugin-ssl_certificates'

Usage

# spec/example_spec.rb
reuqire 'spec_helper'

describe server(:app) do
  describe domain('example.com') do
    it { expect(certificate.serial).to eq(1234567) }
    it { expect(certificate.not_after.to_s).to eq("2015-12-31 18:00:00 UTC") }
  end
end

You can specify port number by options passed to Infrataster::Server.define in spec_helper.rb:

Infrataster::Server.define(
  :app,
  '192.168.33.10',
  ssl: { port: 8443 }
  )

Contributing

  1. Fork it ( https://github.com/[my-github-username]/infrataster-plugin-ssl_certificates/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

About

Check SSL certificates plugin for Infrataster

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages