Class: S3crets::Actions::Init

Inherits:
Base
  • Object
show all
Defined in:
lib/s3crets/actions/init.rb

Overview

Create a new Secretfile

Defined Under Namespace

Classes: TemplateRenderer

Instance Attribute Summary

Attributes inherited from Base

#logger, #options

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from S3crets::Actions::Base

Instance Method Details

#runObject



12
13
14
15
16
# File 'lib/s3crets/actions/init.rb', line 12

def run
  check_for_secretfile
  write_template
  write_gitignore if safe_to_gitignore
end