Sha256: 76e8d17b78e05cd8502c098a222c06d523b21169221d76c2598d14ab7a54ba3a

Contents?: true

Size: 667 Bytes

Versions: 2

Compression:

Stored size: 667 Bytes

Contents

module Ripple
  class Restore < Engine

    attr_accessor :feeds, :force, :solution, :cache, :all_solutions, :verbose

    def command
      'restore'
    end

    def build_args
      args = ''

      args = "#{args} --feeds \"#{@feeds.join('#')}\"" unless @feeds.nil? or @feeds.length < 1
      args = "#{args} --force" if @force
      args = "#{args} --cache \"#{@cache}\"" unless @cache.nil? or @cache.empty?

      if @all_solutions
        args = "#{args} --all"
      else
        args = "#{args} --solution \"#{@solution}\"" unless @solution.nil? or @solution.empty?
      end

      args = "#{args} --verbose" if @verbose

      args.strip
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ripple-cli-0.0.8 lib/ripple-cli/restore.rb
ripple-cli-0.0.7 lib/ripple-cli/restore.rb