Skip to content

add ability to exclude some files from deployment #5

Description

@moredip

For example, I don't want to deploy test code. Would be nice to have a rake task like:

Microstatic::Rake.s3_deploy_task(:deploy) do |task|
  task.source_dir = File.expand_path("../public",__FILE__)
  task.bucket_name = "foo"

  task.exclude "bower.json"
  task.exclude "spec/*_spec.js"
end

for bonus points:

  • support for regexs
  • support for passing an array to exclude
  • support for passing multiple args to exclude
  • support for a dry-run command which just lists what would be deployed (probably worth it's own issue)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions