Class: DialogController
Instance Method Summary
collapse
#dispatch, #get_locales, #is_dcmgr?, #set_application, #set_locale
Instance Method Details
#attach_volume ⇒ Object
11
12
13
|
# File 'app/controllers/dialog_controller.rb', line 11
def attach_volume
@volume_ids = params[:ids]
end
|
#create_security_group ⇒ Object
47
48
49
50
51
|
# File 'app/controllers/dialog_controller.rb', line 47
def create_security_group
@description = ''
@rule = ''
render :create_and_edit_security_group
end
|
#create_snapshot ⇒ Object
23
24
25
|
# File 'app/controllers/dialog_controller.rb', line 23
def create_snapshot
@volume_ids = params[:ids]
end
|
#create_ssh_keypair ⇒ Object
71
72
|
# File 'app/controllers/dialog_controller.rb', line 71
def create_ssh_keypair
end
|
#create_volume ⇒ Object
4
5
|
# File 'app/controllers/dialog_controller.rb', line 4
def create_volume
end
|
#create_volume_from_snapshot ⇒ Object
7
8
9
|
# File 'app/controllers/dialog_controller.rb', line 7
def create_volume_from_snapshot
@snapshot_ids = params[:ids]
end
|
#delete_security_group ⇒ Object
53
54
55
56
|
# File 'app/controllers/dialog_controller.rb', line 53
def delete_security_group
@uuid = params[:ids][0]
@security_group = DcmgrResource::SecurityGroup.show(@uuid)
end
|
#delete_snapshot ⇒ Object
27
28
29
|
# File 'app/controllers/dialog_controller.rb', line 27
def delete_snapshot
@snapshot_ids = params[:ids]
end
|
#delete_ssh_keypair ⇒ Object
74
75
76
|
# File 'app/controllers/dialog_controller.rb', line 74
def delete_ssh_keypair
@ssh_keypair_id = params[:ids][0]
end
|
#delete_volume ⇒ Object
19
20
21
|
# File 'app/controllers/dialog_controller.rb', line 19
def delete_volume
@volume_ids = params[:ids]
end
|
#detach_volume ⇒ Object
15
16
17
|
# File 'app/controllers/dialog_controller.rb', line 15
def detach_volume
@volume_ids = params[:ids]
end
|
#edit_security_group ⇒ Object
58
59
60
61
62
63
64
65
|
# File 'app/controllers/dialog_controller.rb', line 58
def edit_security_group
@uuid = params[:ids][0]
@security_group = DcmgrResource::SecurityGroup.show(@uuid)
@description = @security_group["description"]
@rule = @security_group["rule"]
render :create_and_edit_security_group
end
|
#launch_instance ⇒ Object
67
68
69
|
# File 'app/controllers/dialog_controller.rb', line 67
def launch_instance
@image_id = params[:ids][0]
end
|
#reboot_instances ⇒ Object
39
40
41
|
# File 'app/controllers/dialog_controller.rb', line 39
def reboot_instances
@instance_ids = params[:ids]
end
|
#start_instances ⇒ Object
31
32
33
|
# File 'app/controllers/dialog_controller.rb', line 31
def start_instances
@instance_ids = params[:ids]
end
|
#stop_instances ⇒ Object
35
36
37
|
# File 'app/controllers/dialog_controller.rb', line 35
def stop_instances
@instance_ids = params[:ids]
end
|
#terminate_instances ⇒ Object
43
44
45
|
# File 'app/controllers/dialog_controller.rb', line 43
def terminate_instances
@instance_ids = params[:ids]
end
|