Sha256: 480c51b9a896968c9e7321283210592a5baf00a0b5309c461bffd3e533e8d090

Contents?: true

Size: 460 Bytes

Versions: 20

Compression:

Stored size: 460 Bytes

Contents

Execute.define_task do
  desc "reset-refresh", "Reset source refresh time"
  def reset_refresh
    invoke :config
    user = ask "user: "
    source_name = ask "source name: "
    RestClient.post("#{$url}/api/source/set_refresh_time", { :api_token => $token,
                                                             :user_name => user,
                                                             :source_name => source_name })
  end #reset_refresh
end #do

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
rhoconnect-3.4.5 commands/rhoconnect/reset_refresh.rb
rhoconnect-3.4.4 commands/rhoconnect/reset_refresh.rb
rhoconnect-3.4.3 commands/rhoconnect/reset_refresh.rb
rhoconnect-3.4.2 commands/rhoconnect/reset_refresh.rb
rhoconnect-3.3.6 commands/commands/rhoconnect/reset_refresh.rb
rhoconnect-3.3.5 commands/commands/rhoconnect/reset_refresh.rb
rhoconnect-3.3.4 commands/commands/rhoconnect/reset_refresh.rb
rhoconnect-3.3.3 commands/commands/rhoconnect/reset_refresh.rb
rhoconnect-3.3.2 commands/commands/rhoconnect/reset_refresh.rb
rhoconnect-3.3.1 commands/commands/rhoconnect/reset_refresh.rb
rhoconnect-3.3.1.beta4 commands/commands/rhoconnect/reset_refresh.rb
rhoconnect-3.3.1.beta3 commands/commands/rhoconnect/reset_refresh.rb
rhoconnect-3.3.1.beta2 commands/commands/rhoconnect/reset_refresh.rb
rhoconnect-3.2.1 commands/commands/rhoconnect/reset_refresh.rb
rhoconnect-3.2.0 commands/commands/rhoconnect/reset_refresh.rb
rhoconnect-3.2.0.beta5 commands/commands/rhoconnect/reset_refresh.rb
rhoconnect-3.2.0.beta4 commands/commands/rhoconnect/reset_refresh.rb
rhoconnect-3.2.0.beta3 commands/commands/rhoconnect/reset_refresh.rb
rhoconnect-3.2.0.beta2 commands/commands/rhoconnect/reset_refresh.rb
rhoconnect-3.2.0.beta1 commands/commands/rhoconnect/reset_refresh.rb