Class: WpGenerate::Generator::Capify
- Inherits:
-
WpGenerate::Generator
- Object
- WpGenerate::Generator
- WpGenerate::Generator::Capify
- Defined in:
- lib/wp_generate/generator/capify.rb
Instance Method Summary collapse
-
#initialize(args, options) ⇒ Capify
constructor
A new instance of Capify.
- #templates_dir ⇒ Object
Constructor Details
#initialize(args, options) ⇒ Capify
Returns a new instance of Capify.
2 3 4 5 6 |
# File 'lib/wp_generate/generator/capify.rb', line 2 def initialize args, @options = @templates = {"Capfile" => "Capfile", "config.yml" => "lib/config.yml"} @vars = {} end |
Instance Method Details
#templates_dir ⇒ Object
7 8 9 |
# File 'lib/wp_generate/generator/capify.rb', line 7 def templates_dir File.join(File.dirname(__FILE__), '../templates') end |