Class: Zanzibar::Actions::Init

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

Overview

Create a new Zanzifile

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 Zanzibar::Actions::Base

Instance Method Details

#runObject

Make sure we don’t already have a Zanzifile, then template one



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

def run
  check_for_zanzifile
  write_template
end