Top Level Namespace
Defined Under Namespace
Modules: HackBoxen
Constant Summary
collapse
- INCLUDING_FILE =
caller[2].gsub(/:.*$/, '')
- WorkingConfig =
Configliere::Param.new
Instance Method Summary
collapse
#default_paths, #path_to, #paths
Instance Method Details
#expected_mini_data ⇒ Object
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_name ⇒ Object
41
42
43
|
# File 'lib/hackboxen/tasks/mini.rb', line 41
def hackbox_name
File.join(WorkingConfig[:namespace].gsub(/\./, '/'), WorkingConfig[:protocol])
end
|
#s3fs ⇒ Object
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
|