Class: Pluginizer::PluginBuilder

Inherits:
Rails::PluginBuilder
  • Object
show all
Defined in:
lib/pluginizer/plugin_builder.rb

Instance Method Summary collapse

Instance Method Details

#gemspecObject



7
8
9
# File 'lib/pluginizer/plugin_builder.rb', line 7

def gemspec
  template "%name%.gemspec"
end

#gitignoreObject



11
12
13
# File 'lib/pluginizer/plugin_builder.rb', line 11

def gitignore
  template '.gitignore'
end

#leftoversObject



18
19
20
21
22
23
24
25
26
27
28
# File 'lib/pluginizer/plugin_builder.rb', line 18

def leftovers
  template '.ruby-version'

  after_bundle do
    in_root do
      git :init
      git add: '.'
      git commit: "-m 'first commit'"
    end
  end
end

#readmeObject



3
4
5
# File 'lib/pluginizer/plugin_builder.rb', line 3

def readme
  template 'README.md'
end

#testObject



15
16
# File 'lib/pluginizer/plugin_builder.rb', line 15

def test
end