Module: StaticMatic::SetupMixin

### Home Classes Methods

### In Files

- lib/staticmatic/mixins/setup.rb

### Methods

- #setup

### Files

- LICENSE

### Class/Module Index

Quicksearch

- StaticMatic
- StaticMatic::Base
- StaticMatic::BuildMixin
- StaticMatic::Configuration
- StaticMatic::Error
- StaticMatic::Helpers
- StaticMatic::Helpers::AssetsHelper
- StaticMatic::Helpers::CurrentPathHelper
- StaticMatic::Helpers::FormHelper
- StaticMatic::Helpers::RenderHelper
- StaticMatic::Helpers::TagHelper
- StaticMatic::Helpers::UrlHelper
- StaticMatic::HelpersMixin
- StaticMatic::RenderMixin
- StaticMatic::RescueMixin
- StaticMatic::Server
- StaticMatic::ServerMixin
- StaticMatic::SetupMixin
- StaticMatic::TemplateError
- Compass
- Compass::AppIntegration
- Compass::AppIntegration::Staticmatic
- Compass::AppIntegration::Staticmatic::ConfigurationDefaults
- Compass::AppIntegration::Staticmatic::Installer

No matching classes.

# StaticMatic::SetupMixin

### Public Instance Methods

setup() click to toggle source

    # File lib/staticmatic/mixins/setup.rb, line 3
    def setup
      Dir.mkdir(@base_dir) unless File.exists?(@base_dir)

      Dir[File.join(File.dirname(__FILE__), "..", "templates", "project", "*")].each do |template|
        begin
          FileUtils.cp_r(template, @base_dir)
        rescue Errno::EEXIST
          # ignore - template exists
        end
      end

      puts "Done"
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.