Class: Tuya::System

Inherits:
Object
  • Object
show all
Includes:
Pod::Config::Mixin, Singleton
Defined in:
lib/tycli/system.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeSystem

Returns a new instance of System.



21
22
23
24
25
26
# File 'lib/tycli/system.rb', line 21

def initialize
	@user = `id -un`.strip
	@pod_config = config

	@group = Tuya::Config.local_config @user
end

Instance Attribute Details

#groupObject

Returns the value of attribute group.



19
20
21
# File 'lib/tycli/system.rb', line 19

def group
  @group
end

#pod_configObject

Returns the value of attribute pod_config.



18
19
20
# File 'lib/tycli/system.rb', line 18

def pod_config
  @pod_config
end

#userObject

Returns the value of attribute user.



17
18
19
# File 'lib/tycli/system.rb', line 17

def user
  @user
end

Class Method Details

.lintObject



10
11
12
13
14
15
# File 'lib/tycli/system.rb', line 10

def self.lint
	p "current ruby version: #{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}"

	require 'cocoapods'
	p Pod::VERSION
end