Sha256: 80700cf8b63851818632a27f16ca9d71196b67447712759abc64f4df422dd796

Contents?: true

Size: 1019 Bytes

Versions: 1

Compression:

Stored size: 1019 Bytes

Contents

module Larrow::Runner
  module Cli
    class Tools < ::Thor
      desc 'dump [URL]','convert and dump configuration of the project'
      long_desc <<-EOF.gsub("\n", "\x5")
Read other CI file(eg:.travis.yml), conert to larrow style and dump to STDOUT. 
You can save it as .larrow.yml on the project root folder.
      EOF
      def dump url
        vcs = Vcs.detect url
        configuration = vcs.configuration false
        puts configuration.dump
      end
      
      desc 'resource','show all resource in Resource.yml'
      long_desc <<-EOF.gsub("\n", "\x5")
Read .larrow.resource from current directory, show information.
resource: instance, eip, etc...
      EOF
      def resource
        Manager.resource
      end
      
      desc 'cleanup','cleanup all resource in Resource.yml'
      long_desc <<-EOF.gsub("\n", "\x5")
Read .larrow.resource from current directory, and release all resources.
resource: instance, eip, etc...
      EOF
      def cleanup
        Manager.cleanup
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
larrow-runner-0.0.1 lib/larrow/runner/cli/tools.rb