Sha256: 63e5ad2036b0d5df7e2aba12c9882fe5864d1f1558e84fb027375252cd815ae6

Contents?: true

Size: 633 Bytes

Versions: 14

Compression:

Stored size: 633 Bytes

Contents

# -*- coding : utf-8 -*-
module Mushikago
  module Mitsubachi
    class Script
      attr_reader :client
      attr_reader :project_name
      attr_reader :script_name

      def initialize client, project_name, script_name
        @client = client
        @project_name = project_name
        @script_name = script_name
      end

      def body
        client.script_get(project_name, script_name, :with_body => true)['body']
      end

      def run url, options={}
        client.http_fetch(project_name, url, script_name, options)
      end

      def to_s
        "#{project_name}:#{script_name}"
      end
    end
  end
end


Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
mushikago-sdk-2.4.3 lib//mushikago/mitsubachi/script.rb
mushikago-sdk-2.4.2 lib//mushikago/mitsubachi/script.rb
mushikago-sdk-2.4.1 lib/mushikago/mitsubachi/script.rb
mushikago-sdk-2.4 lib/mushikago/mitsubachi/script.rb
mushikago-sdk-2.2 lib//mushikago/mitsubachi/script.rb
mushikago-sdk-2.1.1 lib/mushikago/mitsubachi/script.rb
mushikago-sdk-2.1.0 lib/mushikago/mitsubachi/script.rb
mushikago-sdk-2.0.0 lib/mushikago/mitsubachi/script.rb
mushikago-sdk-0.4.3 lib/mushikago/mitsubachi/script.rb
mushikago-sdk-0.4.2 lib/mushikago/mitsubachi/script.rb
mushikago-sdk-0.4.1 lib/mushikago/mitsubachi/script.rb
mushikago-sdk-0.4.0 lib/mushikago/mitsubachi/script.rb
mushikago-sdk-0.3.7 lib/mushikago/mitsubachi/script.rb
mushikago-sdk-0.3.6 lib/mushikago/mitsubachi/script.rb