Sha256: 510e3d8dd7b92a13881571477b97d60c37cf414bdfd5b4fa32bc1e814bfffc34

Contents?: true

Size: 1.08 KB

Versions: 1

Compression:

Stored size: 1.08 KB

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 = Manifest.configuration(
          vcs,
          ignore_base_scripts: true,
          ignore_larrow: true
        )
        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.2 lib/larrow/runner/cli/tools.rb