Module: Workspace

Defined in:
lib/bean/config.rb,
lib/bean/project.rb

Defined Under Namespace

Classes: Config

Constant Summary collapse

TMP_DIR =
File.join(Dir.pwd, '.Tmp')
BEAN_FILE =

The bean file where your actin defined. Default is /your/project/root/Beanfile.

File.join(Dir.pwd, 'Beanfile')

Class Method Summary collapse

Class Method Details

.bean?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/bean/project.rb', line 12

def bean?
  File.exist?(Workspace::BEAN_FILE)
end

.clearObject



16
17
18
# File 'lib/bean/project.rb', line 16

def clear
  `rm -rf #{TMP_DIR}` if Dir.exist?(TMP_DIR)
end