Class: FluentCommandBuilder::Schtasks::V61::Create
- Inherits:
-
CommandBase
- Object
- CommandBase
- FluentCommandBuilder::Schtasks::V61::Create
show all
- Defined in:
- lib/fluent_command_builder/command_builders/schtasks_61.rb
Instance Method Summary
collapse
Methods inherited from CommandBase
#configure!, #execute!, #to_s
Constructor Details
#initialize(underlying_builder) ⇒ Create
Returns a new instance of Create.
47
48
49
50
|
# File 'lib/fluent_command_builder/command_builders/schtasks_61.rb', line 47
def initialize(underlying_builder)
super underlying_builder
@b.append ' /create'
end
|
Instance Method Details
#computer(computer, username = nil, password = nil) {|@b| ... } ⇒ Object
66
67
68
69
70
71
72
|
# File 'lib/fluent_command_builder/command_builders/schtasks_61.rb', line 66
def computer(computer, username=nil, password=nil)
@b.append " /s #{@b.format computer}"
@b.append " /u #{@b.format username}" unless username.nil?
@b.append " /p #{@b.format_password password}" unless password.nil?
yield @b if block_given?
self
end
|
#day(day) {|@b| ... } ⇒ Object
83
84
85
86
87
|
# File 'lib/fluent_command_builder/command_builders/schtasks_61.rb', line 83
def day(day)
@b.append " /d #{@b.format day, ','}"
yield @b if block_given?
self
end
|
#delete_upon_completion {|@b| ... } ⇒ Object
138
139
140
141
142
|
# File 'lib/fluent_command_builder/command_builders/schtasks_61.rb', line 138
def delete_upon_completion
@b.append ' /z'
yield @b if block_given?
self
end
|
#duration(duration) {|@b| ... } ⇒ Object
113
114
115
116
117
|
# File 'lib/fluent_command_builder/command_builders/schtasks_61.rb', line 113
def duration(duration)
@b.append " /du #{@b.format duration}"
yield @b if block_given?
self
end
|
#end_date(end_date) {|@b| ... } ⇒ Object
128
129
130
131
132
|
# File 'lib/fluent_command_builder/command_builders/schtasks_61.rb', line 128
def end_date(end_date)
@b.append " /ed #{@b.format end_date}"
yield @b if block_given?
self
end
|
#end_time(end_time) {|@b| ... } ⇒ Object
108
109
110
111
112
|
# File 'lib/fluent_command_builder/command_builders/schtasks_61.rb', line 108
def end_time(end_time)
@b.append " /et #{@b.format end_time}"
yield @b if block_given?
self
end
|
#force {|@b| ... } ⇒ Object
143
144
145
146
147
|
# File 'lib/fluent_command_builder/command_builders/schtasks_61.rb', line 143
def force
@b.append ' /f'
yield @b if block_given?
self
end
|
#help {|@b| ... } ⇒ Object
148
149
150
151
152
|
# File 'lib/fluent_command_builder/command_builders/schtasks_61.rb', line 148
def help
@b.append ' /?'
yield @b if block_given?
self
end
|
#idle_time(idle_time) {|@b| ... } ⇒ Object
93
94
95
96
97
|
# File 'lib/fluent_command_builder/command_builders/schtasks_61.rb', line 93
def idle_time(idle_time)
@b.append " /i #{@b.format idle_time}"
yield @b if block_given?
self
end
|
#kill {|@b| ... } ⇒ Object
118
119
120
121
122
|
# File 'lib/fluent_command_builder/command_builders/schtasks_61.rb', line 118
def kill
@b.append ' /k'
yield @b if block_given?
self
end
|
#modifier(modifier) {|@b| ... } ⇒ Object
78
79
80
81
82
|
# File 'lib/fluent_command_builder/command_builders/schtasks_61.rb', line 78
def modifier(modifier)
@b.append " /mo #{@b.format modifier}"
yield @b if block_given?
self
end
|
#month(month) {|@b| ... } ⇒ Object
88
89
90
91
92
|
# File 'lib/fluent_command_builder/command_builders/schtasks_61.rb', line 88
def month(month)
@b.append " /m #{@b.format month, ','}"
yield @b if block_given?
self
end
|
#repetition_interval(interval) {|@b| ... } ⇒ Object
103
104
105
106
107
|
# File 'lib/fluent_command_builder/command_builders/schtasks_61.rb', line 103
def repetition_interval(interval)
@b.append " /ri #{@b.format interval}"
yield @b if block_given?
self
end
|
#run_as(username, password) {|@b| ... } ⇒ Object
73
74
75
76
77
|
# File 'lib/fluent_command_builder/command_builders/schtasks_61.rb', line 73
def run_as(username, password)
@b.append " /ru #{@b.format username} /rp #{@b.format_password password}"
yield @b if block_given?
self
end
|
#run_only_when_logged_in {|@b| ... } ⇒ Object
133
134
135
136
137
|
# File 'lib/fluent_command_builder/command_builders/schtasks_61.rb', line 133
def run_only_when_logged_in
@b.append ' /it'
yield @b if block_given?
self
end
|
#schedule_type(schedule_type) {|@b| ... } ⇒ Object
51
52
53
54
55
|
# File 'lib/fluent_command_builder/command_builders/schtasks_61.rb', line 51
def schedule_type(schedule_type)
@b.append " /sc #{@b.format schedule_type}"
yield @b if block_given?
self
end
|
#start_date(start_date) {|@b| ... } ⇒ Object
123
124
125
126
127
|
# File 'lib/fluent_command_builder/command_builders/schtasks_61.rb', line 123
def start_date(start_date)
@b.append " /sd #{@b.format start_date}"
yield @b if block_given?
self
end
|
#start_time(start_time) {|@b| ... } ⇒ Object
98
99
100
101
102
|
# File 'lib/fluent_command_builder/command_builders/schtasks_61.rb', line 98
def start_time(start_time)
@b.append " /st #{@b.format start_time}"
yield @b if block_given?
self
end
|
#task_name(task_name) {|@b| ... } ⇒ Object
56
57
58
59
60
|
# File 'lib/fluent_command_builder/command_builders/schtasks_61.rb', line 56
def task_name(task_name)
@b.append " /tn #{@b.format task_name}"
yield @b if block_given?
self
end
|
#task_run(task_run) {|@b| ... } ⇒ Object
61
62
63
64
65
|
# File 'lib/fluent_command_builder/command_builders/schtasks_61.rb', line 61
def task_run(task_run)
@b.append " /tr #{@b.format task_run}"
yield @b if block_given?
self
end
|