Module: Microstatic::Rake

Defined in:
lib/microstatic/rake/s3_deployer_task.rb,
lib/microstatic/rake/task_environment.rb,
lib/microstatic/rake/aws_site_setup_task.rb

Defined Under Namespace

Classes: AwsSiteSetupTask, S3DeployTask, TaskEnvironment

Class Method Summary collapse

Class Method Details

.aws_site_setup_task(opts = {}) {|task_env| ... } ⇒ Object

Yields:

  • (task_env)


36
37
38
39
40
# File 'lib/microstatic/rake/aws_site_setup_task.rb', line 36

def self.aws_site_setup_task(opts = {})
  task_env = TaskEnvironment.new(opts)
  yield task_env if block_given?
  AwsSiteSetupTask.new( task_env ).define
end

.s3_deploy_task(opts = {}) {|task_env| ... } ⇒ Object

Yields:

  • (task_env)


27
28
29
30
31
# File 'lib/microstatic/rake/s3_deployer_task.rb', line 27

def self.s3_deploy_task(opts = {})
  task_env = TaskEnvironment.new(opts)
  yield task_env if block_given?
  S3DeployTask.new( task_env ).define
end