Sha256: 95b492d48d607f0ab1e6a857183f3f5940bb9223a9c7e2897d9e4b665f904f68
Contents?: true
Size: 1.02 KB
Versions: 5
Compression:
Stored size: 1.02 KB
Contents
# frozen_string_literal: true user_password = {global: :all_star, read: { atome: :all_star }, write: { atome: :all_star } } human({ id: :jeezs, login: true, password: user_password, data: { birthday: '10/05/2016' },selection: [], tag: { system: true } , attach: :user_view }) c = box({ color: :yellow, left: 333 }) c.touch(true) do c.message({data: 'cd ..;cd server;ls; pwd', action: :terminal }) do |result| puts "shell command return: #{result}" end c.message({data: {source: 'capture.rb',operation: :read }, action: :file}) do |result| puts "file read encoded_content: #{result[:data].gsub('\x23', '#')}" end c.message({ action: :file,data: {source: 'user_created_file.rb', operation: :write, value: :hello }})do |result| puts "file creation result : #{result}" end A.message({ action: :terminal , data: 'cd ..;cd server;ls; pwd'}) do |result| puts "result : #{result}" end {} #must add an empty hash else events events method will interpret keys of the hash and send a missing method errors end #
Version data entries
5 entries across 5 versions & 1 rubygems