Top Level Namespace

Includes:
HackBoxen::Paths

Defined Under Namespace

Modules: HackBoxen

Constant Summary collapse

INCLUDING_FILE =
caller[2].gsub(/:.*$/, '')
WorkingConfig =
Configliere::Param.new

Instance Method Summary collapse

Methods included from HackBoxen::Paths

#default_paths, #path_to, #paths

Instance Method Details

#expected_mini_dataObject



36
37
38
39
# File 'lib/hackboxen/tasks/mini.rb', line 36

def expected_mini_data
  raise "You don't have a s3_filesystem: mini_bucket: specified in your config" unless WorkingConfig['s3_filesystem.mini_bucket']
  File.join(WorkingConfig['s3_filesystem.mini_bucket'], hackbox_name, 'ripd')
end

#hackbox_nameObject



41
42
43
# File 'lib/hackboxen/tasks/mini.rb', line 41

def hackbox_name
  File.join(WorkingConfig[:namespace].gsub(/\./, '/'), WorkingConfig[:protocol])
end

#s3fsObject



45
46
47
# File 'lib/hackboxen/tasks/mini.rb', line 45

def s3fs
  @s3fs ||= Swineherd::FileSystem.get(:s3, WorkingConfig['s3_filesystem.access_key'], WorkingConfig['s3_filesystem.secret_key'])
end