Sha256: ff1b35fe04a077eae4f52aafd90e008c194ee0f0ebd07949e7632ac5626788c7

Contents?: true

Size: 1.02 KB

Versions: 4

Compression:

Stored size: 1.02 KB

Contents

namespace :kuby do
  def tasks
    @tasks ||= Kuby::Tasks.new(Kuby.definition)
  end

  task dockerfile: :environment do
    tasks.print_dockerfile
  end

  task build: :environment do
    tasks.build
  end

  task run: :environment do
    tasks.run
  end

  task push: :environment do
    tasks.push
  end

  task resources: :environment do
    tasks.print_resources
  end

  task deploy: :environment do
    Kuby.definition.kubernetes.deploy
  end

  task rollback: :environment do
    Kuby.definition.kubernetes.rollback
  end

  task kubeconfig: :environment do
    tasks.print_kubeconfig
  end

  task setup: :environment do
    Kuby.definition.kubernetes.setup
  end

  namespace :remote do
    task logs: :environment do
      tasks.remote_logs
    end

    task status: :environment do
      tasks.remote_status
    end

    task shell: :environment do
      tasks.remote_shell
    end

    task console: :environment do
      tasks.remote_console
    end

    task dbconsole: :environment do
      tasks.remote_dbconsole
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
kuby-core-0.4.0 lib/kuby/tasks/kuby.rake
kuby-core-0.3.0 lib/kuby/tasks/kuby.rake
kuby-core-0.2.0 lib/kuby/tasks/kuby.rake
kuby-core-0.1.0 lib/kuby/tasks/kuby.rake