Sha256: 46acee9f6210d5826617f5b73f106720589b5e3aae8cb1dd163aec65e8228cf3

Contents?: true

Size: 611 Bytes

Versions: 2

Compression:

Stored size: 611 Bytes

Contents

module FuckingShellScripts
  class CLI
    MissingCloudSettings = Class.new(StandardError)

    def initialize(opts = {})
      @opts = opts
    end

    def bootstrap
      server.bootstrap
    end

    def build
      server.build
    end

    def configure
      server.configure
    end

    private

    def server
      @server ||= FuckingShellScripts::Server.new(connection, options)
    end

    def connection
      FuckingShellScripts::Connection.new(options.fetch(:cloud)).connection
    end

    def options
      @options ||= FuckingShellScripts::Configuration.new(@opts).options
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fucking_shell_scripts-1.1 lib/fucking_shell_scripts/cli.rb
fucking_shell_scripts-1.0 lib/fucking_shell_scripts/cli.rb