class Devpad::CLI::Commands::Review::File::Create
Public Class Methods
new(shell:)
click to toggle source
# File lib/devpad/cli/commands/review/file/create.rb, line 7 def initialize(shell:) @shell = shell end
Public Instance Methods
execute(params = {})
click to toggle source
# File lib/devpad/cli/commands/review/file/create.rb, line 11 def execute(params = {}) file = Devpad::API::Review::File.create(params) @shell.say "Uploaded `#{file.name}' successfully." end