Module: Bard

Defined in:
lib/bard.rb,
lib/bard/ci.rb,
lib/bard/cli.rb,
lib/bard/git.rb,
lib/bard/copy.rb,
lib/bard/ping.rb,
lib/bard/config.rb,
lib/bard/github.rb,
lib/bard/server.rb,
lib/bard/target.rb,
lib/bard/command.rb,
lib/bard/version.rb,
lib/bard/ci/local.rb,
lib/bard/ci/state.rb,
lib/bard/ci/runner.rb,
lib/bard/provision.rb,
lib/bard/ci/jenkins.rb,
lib/bard/ssh_server.rb,
lib/bard/deprecation.rb,
lib/bard/ci/retryable.rb,
lib/bard/github_pages.rb,
lib/bard/default_config.rb,
lib/bard/deploy_strategy.rb,
lib/bard/ci/github_actions.rb,
lib/bard/deploy_strategy/ssh.rb,
lib/bard/deploy_strategy/github_pages.rb

Defined Under Namespace

Modules: Deprecation, Git Classes: BackupConfig, CI, CLI, Command, Config, Copy, DeployStrategy, Github, GithubPages, Ping, Provision, SSHServer, Server, Target

Constant Summary collapse

VERSION =
"1.8.0.beta4"
DEFAULT_CONFIG =

Default configuration that is loaded before user’s bard.rb Users can override any of these targets in their bard.rb

lambda do |config, project_name|
  # Local development target
  config.instance_eval do
    target :local do
      ssh false
      path "./"
      ping "#{project_name}.local"
    end

    # Bot and Rose cloud server
    target :gubs do
      ssh "botandrose@cloud.hackett.world:22022",
        path: "Sites/#{project_name}"
      ping false
    end

    # CI target (Jenkins)
    target :ci do
      ssh "jenkins@staging.botandrose.com:22022",
        path: "jobs/#{project_name}/workspace"
      ping false
    end

    # Staging server
    target :staging do
      ssh "www@staging.botandrose.com:22022",
        path: project_name
      ping "#{project_name}.botandrose.com"
    end
  end
end