Module: Flak

Defined in:
lib/flak/rake/target.rb,
lib/flak/rake/os.rb,
lib/flak/version.rb,
lib/flak/thor/cli.rb,
lib/flak/rake/errors.rb,
lib/flak/thor/wizard.rb,
lib/flak/thor/generate.rb,
lib/flak/thor/target_file.rb,
lib/flak/rake/file_actions.rb

Overview

This is where we prepare a target. The target will “get” settings and methods from modules specified in the target.yml file

Defined Under Namespace

Modules: Errors, FileActions, TargetFile, Template, Wizard Classes: CLI, Generate, Target

Constant Summary collapse

VERSION =
"0.0.9"

Class Method Summary collapse

Class Method Details

.osString

Provide a slightly nicer OS string than the RUBY_PLATFORM variable

Returns:

  • (String)

    Either ‘linux64’, ‘linux32’, ‘darwin64’, or ‘win64’



5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/flak/rake/os.rb', line 5

def self.os
  case RUBY_PLATFORM 
  when /64-linux/ 
    'linux64'
  when /i686_linux/
    'linux32'
  when /darwin/
    'darwin64'
  when /i386-cygwin/
    'win64'
  end
end